Jump to content

Program for trailer downloads


Recommended Posts

Happy2Play
Posted

I still use MCM with adaptive trailers setting, but like others it is dependent on the url provided from TMDB.

Posted
12 hours ago, AxeMan said:

I get that it's not an easy thing

It isn't that it is hard.  It is that, for the most part, it is illegal.

  • 1 month later...
horstepipe
Posted
On 2/19/2021 at 9:19 AM, GrimReaper76 said:

 

Edit: Actually, they HAVE to be moved, standard title-trailer naming scheme does not apply on TV Shows, Trailers subfolder is a must. TMM+script have been doin' that for years, completely forgot about it. @cayars Maybe wiki update to emphasize? 

Would you please mind to share your script to create and move trailers into trailer directory?

Posted
42 minutes ago, horstepipe said:

Would you please mind to share your script to create and move trailers into trailer directory?

He's likely doing this at the time of using TMM and not after the fact when things are already loaded in Emby.

How many shows do you have with trailers?
What OS are you using?

horstepipe
Posted
11 minutes ago, cayars said:

He's likely doing this at the time of using TMM and not after the fact when things are already loaded in Emby.

yes same here.

Windows or Linux, doesn't matter.

Posted

What does one of your media folders currently look like with trailers in them?

horstepipe
Posted

sorry but please just say what you really want / where your questions are going to so we can fasten that up lol.
I was just asking @GrimReaper76 if he'd be so kind and share his script which takes

\tvshow\trailer.mp4

to
 

\tvshow\trailers\trailer.mp4

for multiple folders so Emby recognizes them.
For sure I can get to that by myself but if he already has it and is willing to share I can save some time.

GrimReaper
Posted
2 hours ago, horstepipe said:

Would you please mind to share your script to create and move trailers into trailer directory?

Sure, gimme few hours to get back home. 

  • Thanks 1
GrimReaper
Posted

OK, back.

For retoractively scan for your trailers and move to \trailers\ subfolder, you can either run CMD line:

FOR /d %A IN ([path to your parent tv-shows folder]\*) DO mkdir "%A\Trailers" & move "%A\*trailer.*" "%A\Trailers"

or run a crudely-made script out of it from inside your parent folder:

tvshow-trailers.bat

You might need to adjust that for your trailer naming scheme, as until recently the only option in TMM was to name it tvshow-trailer.ext.

However, note that following few issues I raised here:

TMM/Emby : tinyMediaManager (reddit.com)

latest TMM 4.1.3 brought few Emby compatibility improvements:

Release 4.1.3 : tinyMediaManager (reddit.com)

+ Emby compatibility enhancements

  • (TV shows) proper trailer naming for Emby

  • (TV shows) added tmdbid to the NFO

  • (TV shows) added option to write <enddate> to the TV show NFO

  • (TV shows) added option to write all actors/guests into the TV show NFO

One of them being saving TV show trailers into \trailers\ subfolder (yay!), therefore eliminating the need for any manual action going forward, either through CMD or script:

1629511545_Screenshot2021-04-14152943.thumb.png.8f8873c9edd8a2f3cb368d8a75c8f19e.png

Hope all that was clear enough, nudge for any additional assistance required.

Cheers

 

 

tvshow-trailers.bat

  • Like 2
horstepipe
Posted

thank you very much!

  • 2 years later...
Painkiller88
Posted

before i buy the youtube trailers plugin, can anyone please check if it is still working?

As youtube changed something and the download-yt script is no longer working.

 

thanks

Carlo
Posted

To the best of my knowledge, this plugin no longer works.

Carlo

  • Like 1
  • 2 months later...
solidsnakex37
Posted
On 9/3/2020 at 2:09 PM, Carlo said:

You can script it as well and run it from the command line.

I know this might be a bit out of scope, but I've been trying to do just this. I bought TMM Pro specifically for trailer downloads for TV shows only. It works, but not in an automated sense.

I use Unraid, with a TMM docker and to "auto update" the sources I have a script the restarts the container every 6 hours. But to just scrape and download the trailers for shows I have to highlight everything, then scrape. 

Do you have any suggestions on how to automate this by chance, if you still use it? 

TMM had API now, but when I try and run the curl command in unraid console TMM doesn't do anything. I don't get any errors, but it just doesn't respond. I found somewhere on reddit that someone was using the below script to do it, but it didn't work for me. 

 

kill $(pidof java) && /appdata/tinyMediaManager movie -u -n && /appdata/tinyMediaManager tvshow -u -n && kill $(pidof java)


I then tried the below API for TMM, but nothing happens

 

curl -d '[{"action":"update", "scope":{"name":"all"}},{"action":"scrape", "scope":{"name":"new"}}]' -H "Content-Type: application/json" -H "api-key: redacted" -X POST http://localhost:7878/api/tvshows

I feel like I am so close, I just need to automate the scraping and I will be good. I am open to other programs if there is something better, all I want is trailers for tv shows. 

Posted
23 minutes ago, solidsnakex37 said:

I know this might be a bit out of scope, but I've been trying to do just this. I bought TMM Pro specifically for trailer downloads for TV shows only. It works, but not in an automated sense.

I use Unraid, with a TMM docker and to "auto update" the sources I have a script the restarts the container every 6 hours. But to just scrape and download the trailers for shows I have to highlight everything, then scrape. 

Do you have any suggestions on how to automate this by chance, if you still use it? 

TMM had API now, but when I try and run the curl command in unraid console TMM doesn't do anything. I don't get any errors, but it just doesn't respond. I found somewhere on reddit that someone was using the below script to do it, but it didn't work for me. 

 

kill $(pidof java) && /appdata/tinyMediaManager movie -u -n && /appdata/tinyMediaManager tvshow -u -n && kill $(pidof java)


I then tried the below API for TMM, but nothing happens

 

curl -d '[{"action":"update", "scope":{"name":"all"}},{"action":"scrape", "scope":{"name":"new"}}]' -H "Content-Type: application/json" -H "api-key: redacted" -X POST http://localhost:7878/api/tvshows

I feel like I am so close, I just need to automate the scraping and I will be good. I am open to other programs if there is something better, all I want is trailers for tv shows. 

Can you use Emby's webhook to trigger this? 

solidsnakex37
Posted
1 hour ago, AxeMan said:

Can you use Emby's webhook to trigger this? 

That would be awesome if I could...I am not sure though. I just tested this but Emby keeps saying there is an error, but I am too ilterate to know if I am the issue or if it won't work on a localhost URL lol 

Though having it trigger a trailer scrape upon new media being added would be the absolute perfect solution. 

Posted

@solidsnakex37 what does the error look like or say?

Do you see an error in the log file as well?

If so, upload the information such as screenshot or log file so we can have a look.

Carlo

solidsnakex37
Posted
40 minutes ago, Carlo said:

@solidsnakex37 what does the error look like or say?

Do you see an error in the log file as well?

If so, upload the information such as screenshot or log file so we can have a look.

Carlo

Well it could be me doing something wrong, as I assume the URL field for the webhook isn't set to take curl commands, but I don't know what I don't know lol 

The error is this: 
image.png.1bc5caa709f9ed4ce501d964b284e9e5.png

 

In the logs it says: 

System.UriFormatException: System.UriFormatException: Invalid URI: The URI scheme is not valid.

The issue for me is I don't know how to format an API call for a URL format, so I am only using the CURL examples from the page below. TMM support is non-existent, so I can't ask. Tried posting to their reddit but it's just dead-air. 

https://www.tinymediamanager.org/docs/http-api

 

curl -d '[{"action":"update", "scope":{"name":"all"}},{"action":"scrape", "scope":{"name":"new"}}]' -H "Content-Type: application/json" -H "api-key: redacted" -X POST http://localhost:7878/api/tvshows
Posted
On 9/22/2023 at 12:02 PM, solidsnakex37 said:

Well it could be me doing something wrong, as I assume the URL field for the webhook isn't set to take curl commands, but I don't know what I don't know lol 

The error is this: 
image.png.1bc5caa709f9ed4ce501d964b284e9e5.png

 

In the logs it says: 

System.UriFormatException: System.UriFormatException: Invalid URI: The URI scheme is not valid.

The issue for me is I don't know how to format an API call for a URL format, so I am only using the CURL examples from the page below. TMM support is non-existent, so I can't ask. Tried posting to their reddit but it's just dead-air. 

https://www.tinymediamanager.org/docs/http-api

 

curl -d '[{"action":"update", "scope":{"name":"all"}},{"action":"scrape", "scope":{"name":"new"}}]' -H "Content-Type: application/json" -H "api-key: redacted" -X POST http://localhost:7878/api/tvshows

No, it needs to be a url.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...