ryelogheat / xpbot

Analyze a media file, identify the TMDB/IMDB, and generate all the necessary info to upload a torrent to a private tracker using the UNIT3D codebase
55 stars 27 forks source link

Regarding addition of (e.g. bluray, webdl, dvd, etc) #51

Closed wololo-wololo closed 2 years ago

wololo-wololo commented 2 years ago

Hey,

so afaik the software requires you to put either of these above in, howeever, wouldnt it be possible to have sdtv or pdtv included as well?

ryelogheat commented 2 years ago

As long as your filename follows standard naming conventions (e.g. Show.Title.S01E01.1080p.SRC.WEB-DL.DDP2.0.H.264-GROUP) then the script will automatically identify it as a webdl. If your filename is SomeMovie.2022.mkv then it becomes much much harder to reliably identify the source if not totally impossible.

So as long as your filenames contains the words sdtv or pdtv then yeah I could probably work that in

If I correctly described what it is you want then lemme know & I can work it in

wololo-wololo commented 2 years ago

Sorry for the late response; yeah, it's exactly what I was asking for. We sometimes deal with these terms especially when uploading older media.

An example would be formula1.2002.round01.australia.pdtv.576p.x264.english

ryelogheat commented 2 years ago

https://github.com/ryelogheat/xpbot/commit/be47b7a4834d083c76b7d59ea17befbd8259ba32
OK so I've added some early support for PDTV/SDTV sources & started work on supporting R4E motorsport categories (e.g. Formula 1, WRC, MotoGP, etc)

I'm think of just prompting the user for the motorsport category, this won't allow for totally automated uploads but will make my job quite simpler lol, idk what do you think? Like the script would pause midway and ask the user if this is F1, F2, MotoGP, etc

I could probably identify some of the easier stuff automatically (pretty much all F1 stuff I've seen starts with Formula1 so that could be automatically selected but I'm not familiar with the naming schemes of the other motorsport types.

(btw you mentioned you put all the categories & their IDs into your Racing4Everyone.json file, could you post that bit here? It'd save me the effort of having to do it myself)

ryelogheat commented 2 years ago

2022-03-01_20-04 So. many. categories. :weary:

ryelogheat commented 2 years ago

OK you should be all set now, I added a new arg -justfile which automatically sets the tmdb & imdb to 0 so you don't have to manually do it anymore & it uses the filename (periods replaced with spaces) for the torrent title.

I also finished adding all R4E categories and you should now be prompted when uploading to R4E to choose one (see screenshot above).

So for R4E which doesn't have much content that has a TMDB/IMDB ID I suggest you use the -justfile arg python auto_upload.py -t r4e -p formula1.2002.round01.australia.pdtv.576p.x264.english.mkv -justfile

Test it out & lemme know how it goes (or if it even works lol)

wololo-wololo commented 2 years ago

Thanks a lot for your work!

I tested it and it worked very well! Thank you!