Skip to content

Commit 888bf7b

Browse files
committed
Added support for directory names for different platforms
1 parent e690274 commit 888bf7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SeriesTorrentDownloader.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ def downloadEpisode(episode_name,episode_url,directory):
5252
torrent_url = links[-1]['href']
5353
print('downloading '+ episode_name)
5454
resp = requests.get(torrent_url)
55-
with open(directory+'\\'+episode_name+'.torrent','wb') as f:
55+
with open(os.path.join(directory,episode_name+'.torrent'),'wb') as f:
5656
f.write(resp.content)
5757
f.close()
5858
except Exception as e:
5959
print('failed to download '+ episode_name +' you can download the torrent at '+ episode_url)
6060

61-
6261
def search_series():
6362
pass
6463

0 commit comments

Comments
 (0)