[RET] Legendas.tv Subtitle Agent

It’s a subtitle agent that uses Legendas.tv as its source, there really isn’t much to say about it.
It started for personal use, but since I got so many messages asking about it every time I mentioned it in a post I figured it wouldn’t hurt to polish the code a little so other people could use it.
 
Still a work in progress, and probably will stay like that for a long time because every now and then I find something that needs tweaking.
 
Download from GitHub (Manual Installation, and updates)
or
Install it via UnsupportedAppStore (automatically updates the bundles it installs)



EDIT Aug 11th 2017: Agent has been retired, you can have the same functionality and then some from Sub-Zero Subtitles agent

1 Like

I'll try it.

Nice job.

BTW, How do I install it ?

Nice Job!

I'm installing it right now. For those who want directions on how to install it: 

https://github.com/BrutuZ/LegendasTV.bundle

Mine wont load...any ideas?

Mine wont load...any ideas?

None without the agent's log.

Post the contents of com.plexapp.agents.legendastv.log to shed some light on what is going on.

Hello,
 
I followed the steps of installation and even then the plugin will not appear on agents screen, I'm pasting below the log "com.plexapp.agents.legendastv" if you can help me I am using windows 7 64bit.
 
2014-12-08 18:49:17,292 (1388) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2014-12-08 18:49:17,302 (1388) :  DEBUG (core:359) - Using the elevated policy
2014-12-08 18:49:17,302 (1388) :  DEBUG (core:448) - Starting runtime component.
2014-12-08 18:49:17,303 (1388) :  DEBUG (core:448) - Starting caching component.
2014-12-08 18:49:17,303 (1388) :  DEBUG (core:448) - Starting data component.
2014-12-08 18:49:17,303 (1388) :  DEBUG (core:448) - Starting networking component.
2014-12-08 18:49:17,305 (1388) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-12-08 18:49:17,305 (1388) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-12-08 18:49:17,306 (1388) :  DEBUG (core:448) - Starting localization component.
2014-12-08 18:49:17,306 (1388) :  INFO (localization:408) - Setting the default locale to en-us
2014-12-08 18:49:17,306 (1388) :  WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting property name enclosed in double quotes: line 45 column 1 (char 789)
2014-12-08 18:49:17,308 (1388) :  DEBUG (localization:426) - Loaded en strings
2014-12-08 18:49:17,309 (1388) :  DEBUG (core:448) - Starting messaging component.
2014-12-08 18:49:17,309 (1388) :  DEBUG (core:448) - Starting debugging component.
2014-12-08 18:49:17,309 (1f94) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.legendastv'
2014-12-08 18:49:17,309 (1388) :  DEBUG (core:448) - Starting services component.
2014-12-08 18:49:17,309 (1388) :  DEBUG (core:448) - Starting myplex component.
2014-12-08 18:49:17,309 (1388) :  DEBUG (core:448) - Starting notifications component.
2014-12-08 18:49:17,368 (1388) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.legendastv in namespace 'metadata'
2014-12-08 18:49:17,371 (1388) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-12-08 18:49:17,736 (1388) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-12-08 18:49:17,736 (2234) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-12-08 18:49:17,737 (1388) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-12-08 18:49:17,737 (2240) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-12-08 18:49:17,739 (1388) :  DEBUG (core:150) - Finished starting framework core
2014-12-08 18:49:17,740 (1388) :  DEBUG (core:558) - Loading plug-in code
2014-12-08 18:49:17,747 (2240) :  DEBUG (core:536) - Machine identifier is 9e841b74c7a8914db83d2aa793371459dc64a50a
2014-12-08 18:49:18,006 (2240) :  DEBUG (core:537) - Server version is 0.9.11.4.739-a4e710f
2014-12-08 18:49:18,183 (1388) :  DEBUG (core:564) - Finished loading plug-in code
2014-12-08 18:49:18,917 (2234) :  DEBUG (services:362) - Loaded services
2014-12-08 18:49:18,921 (2244) :  DEBUG (services:438) - No shared code to load
 
Hello,
 
I followed the steps of installation and even then the plugin will not appear on agents screen, I'm pasting below the log "com.plexapp.agents.legendastv" if you can help me I am using windows 7 64bit.
 
[snip]
 

I honestly don't know why it stopped mid-way. It should read something like:

[spoiler]

2014-12-09 20:18:48,394 (2284) :  DEBUG (core:448) - Starting caching component.
2014-12-09 20:18:48,394 (2284) :  DEBUG (core:448) - Starting data component.
2014-12-09 20:18:48,395 (2284) :  DEBUG (core:448) - Starting networking component.
2014-12-09 20:18:48,397 (2284) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-12-09 20:18:48,437 (2284) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-12-09 20:18:48,437 (2284) :  DEBUG (core:448) - Starting localization component.
2014-12-09 20:18:48,437 (2284) :  INFO (localization:408) - Setting the default locale to en-us
2014-12-09 20:18:48,448 (2284) :  WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting property name enclosed in double quotes: line 45 column 1 (char 833)
2014-12-09 20:18:48,450 (2284) :  DEBUG (localization:426) - Loaded en strings
2014-12-09 20:18:48,450 (2284) :  DEBUG (core:448) - Starting messaging component.
2014-12-09 20:18:48,450 (2284) :  DEBUG (core:448) - Starting debugging component.
2014-12-09 20:18:48,451 (2284) :  DEBUG (core:448) - Starting services component.
2014-12-09 20:18:48,451 (2284) :  DEBUG (core:448) - Starting myplex component.
2014-12-09 20:18:48,451 (2284) :  DEBUG (core:448) - Starting notifications component.
2014-12-09 20:18:48,460 (460) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.legendastv'
2014-12-09 20:18:48,526 (2284) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.legendastv in namespace 'metadata'
2014-12-09 20:18:48,540 (2284) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-12-09 20:18:48,561 (2284) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-12-09 20:18:48,561 (16dc) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-12-09 20:18:48,562 (2284) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-12-09 20:18:48,562 (16dc) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2014-12-09 20:18:48,562 (cf4) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-12-09 20:18:48,562 (2284) :  DEBUG (core:150) - Finished starting framework core
2014-12-09 20:18:48,563 (2284) :  DEBUG (core:558) - Loading plug-in code
2014-12-09 20:18:48,586 (cf4) :  DEBUG (core:536) - Machine identifier is [snip]
2014-12-09 20:18:48,588 (cf4) :  DEBUG (core:537) - Server version is 0.9.11.4.739-a4e710f
2014-12-09 20:18:48,799 (16dc) :  DEBUG (services:362) - Loaded services
2014-12-09 20:18:48,805 (2650) :  DEBUG (services:438) - No shared code to load
2014-12-09 20:18:48,832 (2284) :  DEBUG (core:564) - Finished loading plug-in code
2014-12-09 20:18:49,384 (2284) :  DEBUG (preferences:256) - Loaded preferences from DefaultPrefs.json
2014-12-09 20:18:49,385 (2284) :  DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.legendastv
2014-12-09 20:18:49,385 (2284) :  DEBUG (agentkit:1020) - Creating new agent class called LegendasTVAgentMovies
2014-12-09 20:18:49,387 (2284) :  DEBUG (agentkit:899) - Updating agent information: [{'media_types': ['Movie'], 'accepts_from': None, 'fallback_agent': None, 'contributes_to': None, 'languages': ['en'], 'persist_stored_files': True, 'version': 0, 'primary_provider': False, 'prefs': True, 'name': 'Legendas.tv'}]
2014-12-09 20:18:49,407 (2284) :  DEBUG (networking:172) - Requesting [snip]
2014-12-09 20:18:49,418 (2284) :  DEBUG (agentkit:1020) - Creating new agent class called LegendasTVAgentTvShows
2014-12-09 20:18:49,420 (2284) :  DEBUG (agentkit:899) - Updating agent information: [{'media_types': ['Movie'], 'accepts_from': None, 'fallback_agent': None, 'contributes_to': None, 'languages': ['en'], 'persist_stored_files': True, 'version': 0, 'primary_provider': False, 'prefs': True, 'name': 'Legendas.tv'}, {'media_types': ['TV_Show'], 'accepts_from': None, 'fallback_agent': None, 'contributes_to': None, 'languages': ['en'], 'persist_stored_files': True, 'version': 0, 'primary_provider': False, 'prefs': True, 'name': 'Legendas.tv'}]
2014-12-09 20:18:49,430 (2284) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/c[snip]'
2014-12-09 20:18:51,209 (2284) :  INFO (logkit:16) - START CALLED
2014-12-09 20:18:51,210 (2284) :  INFO (core:609) - Started plug-in
2014-12-09 20:18:51,210 (2284) :  DEBUG (socketinterface:160) - Starting socket server
2014-12-09 20:18:51,213 (2284) :  DEBUG (runtime:1111) - Created a thread named 'start'
2014-12-09 20:18:51,214 (2284) :  INFO (socketinterface:184) - Socket server started on port 61530
2014-12-09 20:18:51,214 (2284) :  INFO (pipeinterface:25) - Entering run loop

[/spoiler]

I'm running the same server version and operating system as you, so really have no clue as to why it didn't get to the run loop.

Can't get it to work.

Log file:

[spoiler]2014-12-13 00:04:59,828 (2628) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)

2014-12-13 00:04:59,831 (2628) :  DEBUG (core:359) - Using the elevated policy
2014-12-13 00:04:59,832 (2628) :  DEBUG (core:448) - Starting runtime component.
2014-12-13 00:04:59,835 (2628) :  DEBUG (core:448) - Starting caching component.
2014-12-13 00:04:59,835 (2628) :  DEBUG (core:448) - Starting data component.
2014-12-13 00:04:59,835 (2628) :  DEBUG (core:448) - Starting networking component.
2014-12-13 00:04:59,836 (2628) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-12-13 00:04:59,836 (2628) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-12-13 00:04:59,838 (2628) :  DEBUG (core:448) - Starting localization component.
2014-12-13 00:04:59,838 (2628) :  INFO (localization:408) - Setting the default locale to en-us
2014-12-13 00:04:59,839 (2628) :  WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting property name enclosed in double quotes: line 45 column 1 (char 789)
2014-12-13 00:04:59,842 (2628) :  DEBUG (localization:426) - Loaded en strings
2014-12-13 00:04:59,842 (2628) :  DEBUG (core:448) - Starting messaging component.
2014-12-13 00:04:59,844 (2628) :  DEBUG (core:448) - Starting debugging component.
2014-12-13 00:04:59,845 (850) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.legendastv'
2014-12-13 00:04:59,845 (2628) :  DEBUG (core:448) - Starting services component.
2014-12-13 00:04:59,846 (2628) :  DEBUG (core:448) - Starting myplex component.
2014-12-13 00:04:59,848 (2628) :  DEBUG (core:448) - Starting notifications component.
2014-12-13 00:04:59,987 (2628) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.legendastv in namespace 'metadata'
2014-12-13 00:04:59,993 (2628) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-12-13 00:05:00,259 (291c) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-12-13 00:05:00,259 (2628) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-12-13 00:05:00,262 (2628) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-12-13 00:05:00,263 (c10) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-12-13 00:05:00,263 (2628) :  DEBUG (core:150) - Finished starting framework core
2014-12-13 00:05:00,265 (2628) :  DEBUG (core:558) - Loading plug-in code
2014-12-13 00:05:00,279 (c10) :  DEBUG (core:536) - Machine identifier is 672e5dc84b41ac4f2323a27845df92900b64a478
2014-12-13 00:05:00,280 (c10) :  DEBUG (core:537) - Server version is 0.9.11.4.739-a4e710f
2014-12-13 00:05:00,523 (2628) :  DEBUG (core:564) - Finished loading plug-in code
2014-12-13 00:05:00,657 (2628) :  CRITICAL (core:572) - Exception starting plug-in (most recent call last):
  File "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\core.py", line 606, in start
    self.sandbox.execute(self.init_code)
  File "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 256, in execute
    exec(code) in self.environment
  File "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\LegendasTV.bundle\Contents\Code\__init__.py", line 4, in
    from unrar import rarfile
  File "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 345, in __import__
    raise e
LookupError: Couldn't find path to unrar library.
 
2014-12-13 00:05:00,861 (291c) :  DEBUG (services:362) - Loaded services
2014-12-13 00:05:00,867 (2b5c) :  DEBUG (services:438) - No shared code to load
[/spoiler]
 
Any idea? 
 
Thanks

Yes, same here... I moved it into plugins folder and can't get it running... Can you help me? Thanks. (ps: Awesome job with that, I really want to try it!)

Can't get it to work.

Log file:

[spoiler]2014-12-13 00:04:59,828 (2628) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)

2014-12-13 00:04:59,831 (2628) :  DEBUG (core:359) - Using the elevated policy
2014-12-13 00:04:59,832 (2628) :  DEBUG (core:448) - Starting runtime component.
2014-12-13 00:04:59,835 (2628) :  DEBUG (core:448) - Starting caching component.
2014-12-13 00:04:59,835 (2628) :  DEBUG (core:448) - Starting data component.
2014-12-13 00:04:59,835 (2628) :  DEBUG (core:448) - Starting networking component.
2014-12-13 00:04:59,836 (2628) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-12-13 00:04:59,836 (2628) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-12-13 00:04:59,838 (2628) :  DEBUG (core:448) - Starting localization component.
2014-12-13 00:04:59,838 (2628) :  INFO (localization:408) - Setting the default locale to en-us
2014-12-13 00:04:59,839 (2628) :  WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting property name enclosed in double quotes: line 45 column 1 (char 789)
2014-12-13 00:04:59,842 (2628) :  DEBUG (localization:426) - Loaded en strings
2014-12-13 00:04:59,842 (2628) :  DEBUG (core:448) - Starting messaging component.
2014-12-13 00:04:59,844 (2628) :  DEBUG (core:448) - Starting debugging component.
2014-12-13 00:04:59,845 (850) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.legendastv'
2014-12-13 00:04:59,845 (2628) :  DEBUG (core:448) - Starting services component.
2014-12-13 00:04:59,846 (2628) :  DEBUG (core:448) - Starting myplex component.
2014-12-13 00:04:59,848 (2628) :  DEBUG (core:448) - Starting notifications component.
2014-12-13 00:04:59,987 (2628) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.legendastv in namespace 'metadata'
2014-12-13 00:04:59,993 (2628) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-12-13 00:05:00,259 (291c) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-12-13 00:05:00,259 (2628) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-12-13 00:05:00,262 (2628) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-12-13 00:05:00,263 (c10) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-12-13 00:05:00,263 (2628) :  DEBUG (core:150) - Finished starting framework core
2014-12-13 00:05:00,265 (2628) :  DEBUG (core:558) - Loading plug-in code
2014-12-13 00:05:00,279 (c10) :  DEBUG (core:536) - Machine identifier is 672e5dc84b41ac4f2323a27845df92900b64a478
2014-12-13 00:05:00,280 (c10) :  DEBUG (core:537) - Server version is 0.9.11.4.739-a4e710f
2014-12-13 00:05:00,523 (2628) :  DEBUG (core:564) - Finished loading plug-in code
2014-12-13 00:05:00,657 (2628) :  CRITICAL (core:572) - Exception starting plug-in (most recent call last):
  File "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\core.py", line 606, in start
    self.sandbox.execute(self.init_code)
  File "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 256, in execute
    exec(code) in self.environment
  File "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\LegendasTV.bundle\Contents\Code\__init__.py", line 4, in
    from unrar import rarfile
  File "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 345, in __import__
    raise e
LookupError: Couldn't find path to unrar library.
 
2014-12-13 00:05:00,861 (291c) :  DEBUG (services:362) - Loaded services
2014-12-13 00:05:00,867 (2b5c) :  DEBUG (services:438) - No shared code to load
[/spoiler]
 
Any idea? 
 
Thanks

It couldn't find the UnRAR library, you will have to download it from http://www.rarlab.com/rar_add.htm (UnRAR.dll) and put it under Plug-ins\LegendasTV.bundle\Contents\Libraries\Shared\unrar\

GitHub doesn't like to distribute compiled elements.

It was already there, but i did it anyway, but didn't work:

z2urmfZ.png

Don't know if it helps but i'm using Windows 8.1 x64 in Portuguese.

I downloaded the unrar library and put into the unrar folder of plugin, but doesn't change anything.
 
Here my log:

[spoiler]2014-12-14 22:53:11,910 (4120) : INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2014-12-14 22:53:11,911 (4120) : DEBUG (core:359) - Using the elevated policy
2014-12-14 22:53:11,911 (4120) : DEBUG (core:448) - Starting runtime component.
2014-12-14 22:53:11,914 (4120) : DEBUG (core:448) - Starting caching component.
2014-12-14 22:53:11,914 (4120) : DEBUG (core:448) - Starting data component.
2014-12-14 22:53:11,914 (4120) : DEBUG (core:448) - Starting networking component.
2014-12-14 22:53:11,914 (4120) : DEBUG (networking:288) - Loaded HTTP cookies
2014-12-14 22:53:11,915 (4120) : DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-12-14 22:53:11,917 (4120) : DEBUG (core:448) - Starting localization component.
2014-12-14 22:53:11,917 (4120) : INFO (localization:408) - Setting the default locale to en-us
2014-12-14 22:53:11,917 (4120) : WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting property name enclosed in double quotes: line 45 column 1 (char 789)
2014-12-14 22:53:11,920 (4120) : DEBUG (localization:426) - Loaded en strings
2014-12-14 22:53:11,920 (4120) : DEBUG (core:448) - Starting messaging component.
2014-12-14 22:53:11,920 (4120) : DEBUG (core:448) - Starting debugging component.
2014-12-14 22:53:11,921 (3cc0) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.legendastv'
2014-12-14 22:53:11,921 (4120) : DEBUG (core:448) - Starting services component.
2014-12-14 22:53:11,921 (4120) : DEBUG (core:448) - Starting myplex component.
2014-12-14 22:53:11,921 (4120) : DEBUG (core:448) - Starting notifications component.
2014-12-14 22:53:12,007 (4120) : DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.legendastv in namespace 'metadata'
2014-12-14 22:53:12,010 (4120) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-12-14 22:53:12,311 (4120) : DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-12-14 22:53:12,311 (1714) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-12-14 22:53:12,312 (4120) : DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-12-14 22:53:12,312 (1714) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2014-12-14 22:53:12,312 (4090) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-12-14 22:53:12,313 (4120) : DEBUG (core:150) - Finished starting framework core
2014-12-14 22:53:12,315 (4120) : DEBUG (core:558) - Loading plug-in code
2014-12-14 22:53:12,325 (4090) : DEBUG (core:536) - Machine identifier is 906db783700206d5595e440540591a6dec65c6d0
2014-12-14 22:53:12,326 (4090) : DEBUG (core:537) - Server version is 0.9.11.4.739-a4e710f
2014-12-14 22:53:12,665 (1714) : DEBUG (services:362) - Loaded services
2014-12-14 22:53:12,674 (3214) : DEBUG (services:438) - No shared code to load
2014-12-14 22:53:12,686 (4120) : DEBUG (core:564) - Finished loading plug-in code
2014-12-14 22:53:12,783 (4120) : CRITICAL (core:572) - Exception starting plug-in (most recent call last):
File "C:\Users\Marcos\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\core.py", line 606, in start
self.sandbox.execute(self.init_code)
File "C:\Users\Marcos\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 256, in execute
exec(code) in self.environment
File "C:\Users\Marcos\AppData\Local\Plex Media Server\Plug-ins\LegendasTV.bundle\Contents\Code\__init__.py", line 4, in
from unrar import rarfile
File "C:\Users\Marcos\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 345, in __import__
raise e
LookupError: Couldn't find path to unrar library.
 

[/spoiler]

It does work on OSX or just windows?

Ok, i get it to work.
 
I'm sure this isn't the right way to do it, but was the way i did it.
 
I was having the "LookupError: Couldn't find path to unrar library." error and after searching Python site for a while i found this:

I follow the instructions and put the path "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\LegendasTV.bundle\Contents\Libraries\Shared\unrar" here:

MbzgpGG.png

DO NOT REMOVE ANYTHING, add the path to the end separated from the others with a ";".

After this, to get the subtitles to download i had to re-scan my library. It's not like Opensubtitles agent, where it will download the subtitles only when you see a specific movie/tvshow, this will download when the scan is made and it will download for every tvshow/movie.

Ok, i get it to work.
 
I'm sure this isn't the right way to do it, but was the way i did it.
 
I was having the "LookupError: Couldn't find path to unrar library." error and after searching Python site for a while i found this:

daSJaMh.png

I follow the instructions and put the path "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\LegendasTV.bundle\Contents\Libraries\Shared\unrar" here:

MbzgpGG.png

DO NOT REMOVE ANYTHING, add the path to the end separated from the others with a ";".

After this, to get the subtitles to download i had to re-scan my library. It's not like Opensubtitles agent, where it will download the subtitles only when you see a specific movie/tvshow, this will download when the scan is made and it will download for every tvshow/movie.

Awesome job dude, thank you so much! +rep ;)

I did all of this, setup the username and password in agents but the subtitle isn't downloading... When I add anything the subtitle does not download. Can you help me?

eu também não consegui fazer funcionar...podes me ajudar?

Awesome job dude, thank you so much! +rep ;)
 
I did all of this, setup the username and password in agents but the subtitle isn't downloading... When I add anything the subtitle does not download. Can you help me?

 
You need to show us the log file. Without that it's a guessing game.
 
Anyway, i'm not really the right guy to help anyone with this. What i did was read the log file and googled the "LookupError: Couldn't find path to unrar library". That's the only thing i did.
 
 

eu também não consegui fazer funcionar...podes me ajudar?


 
Para alguem ajudar é preciso que partilhes o log do agente.

@Brutuz, your agent is unable to get any subtitles for the tvshow Castle (2009). I have 6 episodes of it and the subtitles are in the legendas.tv website, i confirmed, but the log says no match:
 

[spoiler]2014-12-16 12:35:17,881 (2744) :  INFO (logkit:16) - File: 'Castle.2009.S07E01.720p.HDTV.X264-DIMENSION.mkv'

2014-12-16 12:35:17,881 (2744) :  INFO (logkit:16) - Show: 'Castle (2009)'
2014-12-16 12:35:17,881 (2744) :  INFO (logkit:16) - Season: 's07', Ep: 'e01'
2014-12-16 12:35:17,881 (2744) :  INFO (logkit:16) - Video Source: 'HDTV'
2014-12-16 12:35:17,882 (2744) :  INFO (logkit:16) - Release Group: 'DIMENSION'
2014-12-16 12:35:17,882 (2744) :  INFO (logkit:16) - Searching for filename
2014-12-16 12:35:17,884 (2744) :  INFO (logkit:16) - Params: castle.2009.s07e01.720p.hdtv.x264-dimension
2014-12-16 12:35:17,910 (2744) :  DEBUG (networking:167) - Fetching 'http://legendas.tv/util/carrega_legendas_busca/castle.2009.s07e01.720p.hdtv.x264-dimension/1/-/0/-' from the HTTP cache
2014-12-16 12:35:17,933 (2744) :  INFO (logkit:16) - Subpages: 0
2014-12-16 12:35:17,934 (2744) :  INFO (logkit:16) - Params: Castle (2009) s07e01 HDTV DIMENSION
2014-12-16 12:35:17,960 (2744) :  DEBUG (networking:167) - Fetching 'http://legendas.tv/util/carrega_legendas_busca/Castle%20%282009%29%20s07e01%20HDTV%20DIMENSION/1/-/0/-' from the HTTP cache
2014-12-16 12:35:17,983 (2744) :  INFO (logkit:16) - Subpages: 0
2014-12-16 12:35:17,987 (2744) :  INFO (logkit:16) - 0 subs found - Removing source type
2014-12-16 12:35:17,989 (2744) :  INFO (logkit:16) - Params: Castle (2009) s07e01  DIMENSION
2014-12-16 12:35:18,013 (2744) :  DEBUG (networking:167) - Fetching 'http://legendas.tv/util/carrega_legendas_busca/Castle%20%282009%29%20s07e01%20%20DIMENSION/1/-/0/-' from the HTTP cache
2014-12-16 12:35:18,038 (2744) :  INFO (logkit:16) - Subpages: 0
2014-12-16 12:35:18,038 (2744) :  INFO (logkit:16) - 0 subs found - Going for source type
2014-12-16 12:35:18,039 (2744) :  INFO (logkit:16) - Params: Castle (2009) s07e01 HDTV
2014-12-16 12:35:18,065 (2744) :  DEBUG (networking:167) - Fetching 'http://legendas.tv/util/carrega_legendas_busca/Castle%20%282009%29%20s07e01%20HDTV/1/-/0/-' from the HTTP cache
2014-12-16 12:35:18,092 (2744) :  INFO (logkit:16) - Subpages: 0
2014-12-16 12:35:18,092 (2744) :  INFO (logkit:16) - []
2014-12-16 12:35:18,092 (2744) :  INFO (logkit:16) - No subtitles found =([/spoiler]
 
[spoiler]

 
You need to show us the log file. Without that it's a guessing game.
 
Anyway, i'm not really the right guy to help anyone with this. What i did was read the log file and googled the "LookupError: Couldn't find path to unrar library". That's the only thing i did.
 
 

como assim o log do agente? como acho?

Ok, i get it to work.

I'm sure this isn't the right way to do it, but was the way i did it.

I was having the "LookupError: Couldn't find path to unrar library." error and after searching Python site for a while i found this:

daSJaMh.png

I follow the instructions and put the path "C:\Users\Laptop\AppData\Local\Plex Media Server\Plug-ins\LegendasTV.bundle\Contents\Libraries\Shared\unrar" here:

MbzgpGG.png

DO NOT REMOVE ANYTHING, add the path to the end separated from the others with a ";".

After this, to get the subtitles to download i had to re-scan my library. It's not like Opensubtitles agent, where it will download the subtitles only when you see a specific movie/tvshow, this will download when the scan is made and it will download for every tvshow/movie.

Heh, my bad, didn't think it would be necessary. I had it set due to the different RAR modules tested for the plug-in but wasn't aware they depended on it. I'll look into it and try to remove this annoying dependency.
Kudos and thanks for figuring it out

@Brutuz, your agent is unable to get any subtitles for the tvshow Castle (2009). I have 6 episodes of it and the subtitles are in the legendas.tv website, i confirmed, but the log says no match:
 
[spoiler]2014-12-16 12:35:17,881 (2744) :  INFO (logkit:16) - File: 'Castle.2009.S07E01.720p.HDTV.X264-DIMENSION.mkv'
2014-12-16 12:35:17,881 (2744) :  INFO (logkit:16) - Show: 'Castle (2009)'
2014-12-16 12:35:17,881 (2744) :  INFO (logkit:16) - Season: 's07', Ep: 'e01'
2014-12-16 12:35:17,881 (2744) :  INFO (logkit:16) - Video Source: 'HDTV'
2014-12-16 12:35:17,882 (2744) :  INFO (logkit:16) - Release Group: 'DIMENSION'
2014-12-16 12:35:17,882 (2744) :  INFO (logkit:16) - Searching for filename
2014-12-16 12:35:17,884 (2744) :  INFO (logkit:16) - Params: castle.2009.s07e01.720p.hdtv.x264-dimension
2014-12-16 12:35:17,910 (2744) :  DEBUG (networking:167) - Fetching 'http://legendas.tv/util/carrega_legendas_busca/castle.2009.s07e01.720p.hdtv.x264-dimension/1/-/0/-' from the HTTP cache
2014-12-16 12:35:17,933 (2744) :  INFO (logkit:16) - Subpages: 0
2014-12-16 12:35:17,934 (2744) :  INFO (logkit:16) - Params: Castle (2009) s07e01 HDTV DIMENSION
2014-12-16 12:35:17,960 (2744) :  DEBUG (networking:167) - Fetching 'http://legendas.tv/util/carrega_legendas_busca/Castle%20(2009)%20s07e01%20HDTV%20DIMENSION/1/-/0/-' from the HTTP cache
2014-12-16 12:35:17,983 (2744) :  INFO (logkit:16) - Subpages: 0
2014-12-16 12:35:17,987 (2744) :  INFO (logkit:16) - 0 subs found - Removing source type
2014-12-16 12:35:17,989 (2744) :  INFO (logkit:16) - Params: Castle (2009) s07e01  DIMENSION
2014-12-16 12:35:18,013 (2744) :  DEBUG (networking:167) - Fetching 'http://legendas.tv/util/carrega_legendas_busca/Castle%20(2009)%20s07e01%20%20DIMENSION/1/-/0/-' from the HTTP cache
2014-12-16 12:35:18,038 (2744) :  INFO (logkit:16) - Subpages: 0
2014-12-16 12:35:18,038 (2744) :  INFO (logkit:16) - 0 subs found - Going for source type
2014-12-16 12:35:18,039 (2744) :  INFO (logkit:16) - Params: Castle (2009) s07e01 HDTV
2014-12-16 12:35:18,065 (2744) :  DEBUG (networking:167) - Fetching 'http://legendas.tv/util/carrega_legendas_busca/Castle%20(2009)%20s07e01%20HDTV/1/-/0/-' from the HTTP cache
2014-12-16 12:35:18,092 (2744) :  INFO (logkit:16) - Subpages: 0
2014-12-16 12:35:18,092 (2744) :  INFO (logkit:16) - []
2014-12-16 12:35:18,092 (2744) :  INFO (logkit:16) - No subtitles found =([/spoiler]
 
[spoiler]
zM8X9rY.png[/spoiler]

Remove the date from your TV Show name on Plex Server, or at least the brackets since they're adding information that makes the search return no results.
If you feel like trying it for yourself: http://legendas.tv/busca/Castle (2009) s07e01/1
 

como assim o log do agente? como acho?

English forum, english answer.The file com.plexapp.agents.legendastv.log should be located on your Logs folder, inside Plex Data.
If you're on Windows and did a default install of Plex Server pasting the path %LocalAppData%\Plex Media Server\Logs on an Windows Explorer window ought to get you right to it