Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
XDGFX authored Mar 23, 2019
1 parent 2c3cb62 commit 464b992
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions PPP.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@

current_playlist = install_directory + '\\tmp\\plex\\' + filename

if not os.path.isfile(current_playlist):
print('The file: ' + current_playlist + ' has been lost...')

querystring = urllib.parse.urlencode(OrderedDict([("sectionID", section_id), ("path", current_playlist), ("X-Plex-Token", plex_token)]))
response = requests.post(url, data = "", headers = headers, params = querystring)
print(response.text) # Should return nothing but if there's an issue there may be an error shown
Expand All @@ -239,7 +236,7 @@
raise SystemExit

for filename in os.listdir('tmp/local/'):
shutil.copy2('tmp/local' + file, local_playlists)
shutil.copy2('tmp/local/' + filename, local_playlists)

try:
shutil.rmtree('tmp/')
Expand Down

0 comments on commit 464b992

Please sign in to comment.