[BETA] Plex Downloader - Desktop Sync

I noticed that I was having trouble with movies syncing when I added them from the list. I also noted that in your readme it mentioned that they should be put in the match list as 

movie title (year)   Or maybe I saw that in this thread somewhere.

Either way, in the screenshots you can see that the titles are fetched from my main server with the name and the year, but when they are parsed out and displayed by the webui they don't get the year.

See my screenshots   (the Zero Dark Thirty  entry is one that I put in by hand while testing)

[sharedmedia=core:attachments:34561]
[sharedmedia=core:attachments:34560]
 
I made the following code changes in webui.py starting at line 115
This has resolved both the filenames written to the text files of the movies file and the syncing
I haven't even considered or tested the tv shows
 
		try:
			movieyear = item.attributes['year'].value
		except:
			movieyear="Unknown"
		movielib.append(moviename+" ("+movieyear+")")

ECS470

In the interest of being thorough I have added a picture of the movie list after the change and a shot of the code

In the interest of being thorough I have added a picture of the movie list after the change and a shot of the code

Thanks for the fix I have pushed it to the master branch!

Sorry I should have mentioned in my original post - yes, tried a variety of browsers on two machines all with the same result.  No extensions or blocking scripts.

I can't replicate your issue on my end. If you give me more information about your setup maybe I can figure out the issue (Server OS, Client OS, PMS Version, Python Version, etc). Thanks!

Trying to run the latest code from Github on a Windows 7 machine with Python 2.7.8 with a remote Plex running PMS 0.9.10.0.581-CEC9E01 with enabled MyPlex option also just results in 401 Unauthorized exceptions.

[myplex]
status=enable
If I  disable even the movies section the WebUI and is started but otherwise the last log entry is always:
File "C:\Python27\lib\urllib.py", line 381, in http_error_default raise IOError, ('http error', errcode, errmsg, headers) IOError: ('http error', 401, 'Unauthorized', )
 
Starting PlexDownloader Web Manager...
PlexDownloader - v0.03
Fetching myPlex authentication token.
Fetching myPlex authentication token.
1 Movies Found in Your Wanted List...
Something went wrong
Plex Download failed at 2014-09-20 22:18:34
Retrying in 600 Seconds...

Now I am setting up a local server to see if just the myplex option causes problems.

No problems with a local instance running PMS -0.9.914.531-7eef8c6 displaying and downloading content without myplex option.

But I can confirm the missing file 404 File not found error for GET "/assets/flash/ZeroClipboard.swf"

Also the web interface still shows version 0.02 and the item counter displays wrong values.

UOBXdi.jpg

1) Make sure you aren't using a shared myPlex account to sync your content use the account associated with your server or it will show unauthorized. Also check that firewalls/antivirus  aren't blocking your connection. Use a remote ip when using myPlex and/or something like http://freedns.afraid.org to keep it up to date.

2) The synced movies number is because its reading a blank line from your movies sync text file. You can edit the code and -1 from the output to show 0 if you want. 

3) Ignore all errors pertaining to the web server as its just because I used a bootstrap template and didn't edit it out completely, when I have time I'll change it a bit. EX: 404 not found. 302 not modified.

The version number is just a cosmetic issue and shouldn't harm functionality but I'll change it when I get around to the next release.

As for functionality I have tried both remote myplex downloading and local functionality on the latest plexpass build and they seem to work fine (on mac 10.9 and 10.10). Should work on windows too. Good luck!

Anyone got a link to quick start on what would be needed to download and setup this project?
I'm guessing something like:
python

Github   (sync, or web download releases?)

others?

Running windows servers and clients

Thanks

Anyone got a link to quick start on what would be needed to download and setup this project?
I'm guessing something like:
python

Github   (sync, or web download releases?)

others?

Running windows servers and clients

Thanks

Start with this

https://www.python.org/downloads/windows/

Get the zip pack https://github.com/ilyaz/PlexDownloader

unzip it somewhere that you want it to live.

Do the user.ini mods from the readme.md

Double click on the plexdl.py file, you should see some text in the command window that opens. Once you see http://0.0.0.0:8585 you can go to http://localhost:8585 to select your downloads.

Hi,

It seems everybody understood the goal of this tool except me. Does it provide the ability to sync content to desktop clients?

Thanks.

Hi,

It seems everybody understood the goal of this tool except me. Does it provide the ability to sync content to desktop clients?

Thanks.

It's to sync to a desktop hard drive, which you then play with something like xbmc or vlc. It's just a downloader.

Phew, I'm not as stupid as I thought.

Start with this

https://www.python.org/downloads/windows/

Get the zip pack https://github.com/ilyaz/PlexDownloader

unzip it somewhere that you want it to live.

Do the user.ini mods from the readme.md

Double click on the plexdl.py file, you should see some text in the command window that opens. Once you see http://0.0.0.0:8585 you can go to http://localhost:8585 to select your downloads.

Thanks for these tips

I'll wait a few weeks til I have holidays and then try it out

Tried on OSX 10.10.1, startet from terminal the plexdl.py but then i got an error after listing all my movies and tv shows.

Plex Download completed at 2014-12-04 20:53:46
Sleeping 600 Seconds...
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py:1285: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  return ''.join(map(quoter, s))
Traceback (most recent call last):
  File "webui.py", line 202, in 
    movieSearch()		
  File "webui.py", line 125, in movieSearch
    movielibencoded.append(urllib.quote(moviename+" ("+movieyear+")"))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 1285, in quote
    return ''.join(map(quoter, s))
KeyError: u'\xdf'

Do i make something wrong?

Tried on OSX 10.10.1, startet from terminal the plexdl.py but then i got an error after listing all my movies and tv shows.

Plex Download completed at 2014-12-04 20:53:46
Sleeping 600 Seconds...
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py:1285: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  return ''.join(map(quoter, s))
Traceback (most recent call last):
  File "webui.py", line 202, in 
    movieSearch()		
  File "webui.py", line 125, in movieSearch
    movielibencoded.append(urllib.quote(moviename+" ("+movieyear+")"))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 1285, in quote
    return ''.join(map(quoter, s))
KeyError: u'\xdf'

Do i make something wrong?

Reverted the pull request that I believe was causing this issue. Redownload and you should be good to go.

Now its running better but on sync i get a new error in terminal

127.0.0.1:50059 - - [05/Dec/2014 08:47:38] "HTTP/1.1 GET /assets/flash/ZeroClipboard.swf" - 404 Not Found

And in the top navigation the button movie, tv show do nothing on click.

And it would be great to sync seasons not only complete shows, some of my shows are very big and i only need to take some episodes or maximum a season with me.

Now its running better but on sync i get a new error in terminal

127.0.0.1:50059 - - [05/Dec/2014 08:47:38] "HTTP/1.1 GET /assets/flash/ZeroClipboard.swf" - 404 Not Found

And in the top navigation the button movie, tv show do nothing on click.

And it would be great to sync seasons not only complete shows, some of my shows are very big and i only need to take some episodes or maximum a season with me.

Ignore the 404 not found error from the web server (and generally all the messages from the web server). The top navigation buttons are there as placeholders in case I want to add something, however it currently just links to the on page movies/tv columns so you won't see any change when actually clicking them.

In the current implementation there is no easy way to just pick a specific season for a specific show, as then it would pick it for all the shows. However, perhaps by combining the "unwatched" and "all episode" tags  you would be able to sync just all the unwatched content of a show instead of all your episodes. You can currently sync tv shows by all episodes, latest season, and latest episode, and you can use those filters in conjunction with the unwatched and auto delete tags to further define your sync queue. I may make this more dynamic in the future.

hi nice work, I requested to implement this feature on plexsync some time ago without success.

I would ask you some new features:
- add a button to force the new content checking

- when I push on the delete button, would be nice if the movie/tv show/..., will be deleted from the external drive

- when I sync movies, will be created a new folder for each movie. can you add the possibility to sync it without create folders on destination hdd

- implement a progress bar to see when the sync is finished

bug: if I enable a section but i don't sync nothing, the counter of synced content will show me 1

thanks

hi nice work, I requested to implement this feature on plexsync some time ago without success.

I would ask you some new features:
- add a button to force the new content checking

- when I push on the delete button, would be nice if the movie/tv show/..., will be deleted from the external drive

- when I sync movies, will be created a new folder for each movie. can you add the possibility to sync it without create folders on destination hdd

- implement a progress bar to see when the sync is finished

bug: if I enable a section but i don't sync nothing, the counter of synced content will show me 1

thanks

When I get a chance I'll implement the force button checking as an option under each WebUI column and add an optional ini tag for deleting the folder/file on delete from webui.

I will not be adding a feature for no folder for each movie, as I find it is more organized in its current implementation. However I'd be willing to accept a pull request of this contingent on it being optional through the ini.

I don't know if I'm going to add a progress bar, but I have implemented a "currently downloading" feature to my local build, just haven't gotten around to updating github. However, I suggest bringing this up on github so I actually remember :).

UPCOMING FEATURES:

Media Browser 3 Support [possibly in a separate repository/Media Downloader]

Subtitles Support

Possible darker new theme

Currently Downloading in WebUI [Sync Status]

XBMC local updating 

Force check for content

Optional ini option for deleting content on webui delete

UPCOMING FIXES:

Number fix for WebUI sync number

Special Characters Fix for WebUI

Aligned buttons 

Hide all webui messages

Cool project! I might steal something for my htpc manager fork :slight_smile:



Sent from my iPhone using Tapatalk

Got the software running and looks to work well. What would be the best way to go about adding an extra movie section (in my case Kid's Movies), I don't use Music or Pictures so I could cannibalise those. 

nvm issued resolved.