-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.py
60 lines (55 loc) · 2.12 KB
/
Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from TvShow import TvShow
# Specify your bittorrent client
bittorrent_client='deluge'
# Specify your shows details
# Beginning_season and beginning_episode define the exact episode that the search starts from.
# It should download all the episodes in all seasons after that episodes.
# If you enter 1,1 respectively, it will download the entire series.
# The code opens magnet links into your favourite bittorrent client.
# This has been tested using Deluge. Other bittorrent clients may require some modifications in the code.
# Only works on Unix for now. Windows uses a different set of commands to start an application.
# Support for Windows may or may not come in the future (I hate coding on Windows).
# I recommend use eztv.io for all your torrent links, you may try other websites if they have the same general layout.
shows = {
"The Flash": {
"link": "https://eztv.io/shows/1058/the-flash-2014/",
"beginning_season": 6,
"beginning_episode": 1,
"extra": "x265"
},
"Rick and Morty": {
"link": "https://eztv.io/shows/1017/rick-and-morty/",
"beginning_season": 4,
"beginning_episode": 1,
"extra": ""
},
"The Big Bang Theory": {
"link": "https://eztv.io/shows/23/the-big-bang-theory/",
"beginning_season": 13,
"beginning_episode": 1,
"extra": "x265"
},
"Better Call Saul": {
"link": "https://eztv.io/shows/1191/better-call-saul/",
"beginning_season": 5,
"beginning_episode": 1,
"extra": "720p"
},
"Mr Robot": {
"link": "https://eztv.io/shows/1250/mr-robot/",
"beginning_season": 4,
"beginning_episode": 1,
"extra": "720p"
},
"Chernobyl": {
"link": "https://eztv.io/shows/5500/chernobyl/",
"beginning_season": 1,
"beginning_episode": 4,
"extra": "x265"
}
}
for show_title, show_properties in shows.items():
show = TvShow(show_title, show_properties, bittorrent_client)
x = show.get_next_episodes_links(download=True)
for i in x:
print(i)