Open fritz276 opened 7 years ago
2017-08-08 12:56:27,071 (80b44e800) : INFO (init:222) - media doesnt exist in key 2017-08-08 12:56:27,071 (80b44e800) : INFO (init:227) - ADDED POSTER 2017-08-08 12:56:27,075 (80b44e800) : DEBUG (networking:166) - Requesting '//images3.naughtycdn.com/datana/upload/source/mshf/ninaviolettyler/ninaviolettylerver_136x205.jpg' 2017-08-08 12:56:27,076 (80b44e800) : CRITICAL (agentkit:1078) - Exception in the update function of agent named 'Naughty America', called with guid 'com.plexapp.agents.naughty america://http:__tour.naughtyamerica.com_scene_nina-north-violet-starr-23067?lang=en' (most recent call last):
[cut]
File "/var/db/plexdata/Plex Media Server/Plug-ins/NaughtyAmerica.bundle/Contents/Code/init.py", line 228, in update metadata.posters[posterUrl] = Proxy.Preview(HTTP.Request(thumbUrl, headers={'Referer': 'http://www.google.com'}).content, sort_order = i)
ValueError: unknown url type: //images3.naughtycdn.com/datana/upload/source/mshf/ninaviolettyler/ninaviolettylerver_136x205.jpg
I fixed it ugly - inserted after Line 220
if thumbUrl.startswith('//'): thumbUrl = 'http:' + thumbUrl if posterUrl.startswith('//'): posterUrl = 'http:' + posterUrl
2017-08-08 12:56:27,071 (80b44e800) : INFO (init:222) - media doesnt exist in key 2017-08-08 12:56:27,071 (80b44e800) : INFO (init:227) - ADDED POSTER 2017-08-08 12:56:27,075 (80b44e800) : DEBUG (networking:166) - Requesting '//images3.naughtycdn.com/datana/upload/source/mshf/ninaviolettyler/ninaviolettylerver_136x205.jpg' 2017-08-08 12:56:27,076 (80b44e800) : CRITICAL (agentkit:1078) - Exception in the update function of agent named 'Naughty America', called with guid 'com.plexapp.agents.naughty america://http:__tour.naughtyamerica.com_scene_nina-north-violet-starr-23067?lang=en' (most recent call last):
[cut]
File "/var/db/plexdata/Plex Media Server/Plug-ins/NaughtyAmerica.bundle/Contents/Code/init.py", line 228, in update metadata.posters[posterUrl] = Proxy.Preview(HTTP.Request(thumbUrl, headers={'Referer': 'http://www.google.com'}).content, sort_order = i)
[cut]
ValueError: unknown url type: //images3.naughtycdn.com/datana/upload/source/mshf/ninaviolettyler/ninaviolettylerver_136x205.jpg