Aight

Proof of concept: Automatic Show Torrenter



Disclaimer:

This is a proof of concept post, nothing more, doesn't mean I download stuff illegally, doesn't mean anyone should, bla bla bla.
The images provided are nothing but examples of what can be achieved.


TL;DR

There's a video if you scroll down with a working early version of this project (manual input) that shows it working, so if you don't like reading, get to scrolling.


The Thing.

So yeah, I made this lil thing python script to go on piratebay and get torrent magnet links, then execute bittorrent with them as a startup param.
Set up a config file as well, for however many shows the user may want to check.

That's the basics.


There really isn't that much to it, It just grabs a file with this format:



And scouts piratebay for results on the search_term attribute of each show.

After that it finds a valid candidate (valid candidates must have "720" or "1080" in the title of the torrent), it checks for the "except" attribute (if the current tag has it).
Pretty self explanatory, lets you rule out unwanted torrents that might show up in the search. A good example is the show "easy", there are seemingly a lot of torrents out there with "easy" in their name, as well as "720"/"1080", so I have a few excepts, separated by commas to rule those out.

Then, as it is finding episodes, it will check if the uploader is any of the listed (the tag), this is particularly useful because of fakes and stupid kids.

If you don't have a lot of experience with torrents, I'll explain: idiots really like to make botnets any way possible, so they often upload "episodes" or "movies" too early, so idiots go there thinking they're hot shit, and get their pc assfucked.

Other scenarios are people uploading trailers. Yes. This happens. They grab the "next season trailer" directly from youtube and upload it onto piratebay. God knows why! You'd think that anyone without youtube access would also not have piratebay access but oh well.

Anyway that's pretty much it, I think the rest is pretty self explanatory. Many countries(including my own) block piratebay access, hence the "" tag, and the "" tag is just for the client used, grabs whatever is in the "location" attribute and replaces "%location with it", same for "%path" with save_directory, and "%torrent" is the magnet link it'll aquire.



Here's an example of it working:



Which yeilds the following result:



Then to manage it all, you could use something like plex, code your own service thing, the possibilities are endless really.



yee.



The Vid.




The End.

Hope I can have helped or at least entertained, l8r.