[PLUGIN] Plugin per il download automatico di sottotitoli delle Serie TV da ItalianSubs

Ciao ragazzi,
 
utilizzo con piacere Plex e sono un patito di serie televisive, rigorosamente in lingua originale.
 
Ho fatto un plugin per il Plex Media Server che consente di scaricare in automatico i sottotitoli italiani da ItalianSubs.net, community molto appassionata e prolifica sul fronte della produzione di sottotitoli.
 

Il repository del plugin è qui: https://github.com/paolobernardi/italiansubsagent-for-plex mentre chi è interessato a scaricarlo può farlo qui https://github.com/paolobernardi/italiansubsagent-for-plex/releases 
Il link diretto è https://github.com/paolobernardi/italiansubsagent-for-plex/releases/download/2.0.2/ItalianSubsAgent.bundle.zip  

Una volta estratto il file zip, per installare il plugin è necessario muovere la cartella ItalianSubsAgent.bundle (su osx è visto come un file) nella cartella Plug-ins di Plex. La posizione di questa cartella varia da un sistema operativo all'altro e potete consultare le FAQ ufficiali di Plex per trovarla: https://support.plex.tv/hc/en-us/articles/201106098
 

Ciao a tutti :slight_smile:

io non riesco ad installarlo...l'ho messo nella cartella plugins del server e poi l'ho riavviato...ma negli agents ancora non c'è...che devo fare?

io non riesco ad installarlo...l'ho messo nella cartella plugins del server e poi l'ho riavviato...ma negli agents ancora non c'è...che devo fare?

E' un "sub-agent", per attivarlo devi andare in Impostazioni->Agents->TV Shows (Spettacoli TV) e attivarlo in uno degli agents principali che utilizzi, come "Personal Media Shows" o "TheTVDB".

eh si ma non c'è proprio come opzione da attivare

EDIT: questo è lo screen

[thumb_8618787Schermata_del_2014-05-12_10](http://www.bild.me/bild.php?file=8618787Schermata_del_2014-05-12_10_23_04.png)

Hai l'ultima versione di Plex? Il tuo sistema operativo?

E' molto strano perché dovrebbe comparire. Controlla di aver installato correttamente il plugin, solo la cartella ItalianSubsAgent.bundle deve andare nella cartella Plugin-ins di Plex.

Sembra un suggerimento banale lo so, ma è l'unico che posso darti in questo momento. Se hai voglia di investigare puoi controllare i log, i file sono Plex Media Server.log e PMS Plugin Logs/com.plexapp.agents.italiansubs.log .. contenuti nella cartella Logs, che dovrebbe essere nella stessa posizione della cartella Plugin-ins (tranne su osx, che è in ~/Library/Logs)

![post-241900-0-58931100-1399906084.jpg|690x407](upload://wuEJjLuDpB9Q1TEZSOpFWBtsKZm.jpg)

Controlla che i permessi della cartella ItalianSubsAgent.bundle e i suoi contenuti siano gli stessi delle altre cartelle .bundle presenti nei Plug-ins.
 
Ad esempio, per installare il plug-in in Ubuntu (12.04):

  • alt-f2 per aprire la finestra 'Esegui comando', digitare "gksu nautilus" (senza virgolette) e introdurre la password utente: si aprirà una finestra del file manager Nautilus con permessi di root;
  • copiare o spostare ItalianSubsAgent.bundle in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins;
  • nelle proprietà della cartella (click destro>Proprietà), tab Permessi, settare come una delle altre cartelle .bundle presenti nella cartella dei Plug-ins e cliccare su "Applica permessi ai file contenuti" (vedi immagine allegata).

Io però ho un'altra domanda: come si usa?  :unsure:

Lo vedo fra gli Agents, l'ho attivato ed ho fatto login con il mio account. Ho provato a lanciare una puntata di una serie della quale so per certo che esiste un sottotitolo, ma non compare nulla.

Io però ho un'altra domanda: come si usa?  :unsure:

Lo vedo fra gli Agents, l'ho attivato ed ho fatto login con il mio account. Ho provato a lanciare una puntata di una serie della quale so per certo che esiste un sottotitolo, ma non compare nulla.

Ciao, prima di tutto ti consiglio di scaricare l'ultima versione seguendo questo link: https://github.com/paolobernardi/italiansubsagent-for-plex/archive/master.zip

Poi.. dovrebbe semplicemente funzionare. Considera che se la puntata era già inserita o se al momento in cui veniva inserita in plex il sottotitolo su Itasa ancora non era disponibile, allora devi "forzare" l'aggiornamento, ovvero andare nella pagina dell'episodio e fare "Aggiorna". Al momento sto lavorando ad una soluzione, anche se è complicato.

Se ancora non funziona.. potresti provare a dare un'occhiata al Logs del plugin e a postare il contenuto? Si trova in Logs/PMS Plugin Logs/com.plexapp.agents.italiansubs.log , in questo modo posso provare a fare un eventuale debug.

Ciao!

Innanzitutto grazie infinite per quest'ottimo plug-in PaoloBe!

Per quanto riguarda la localizzazione della libreria dei plugins (almeno su Linux) sappi che ce ne sono molte! C'è quella riportata nella Faq su Plex.TV, c'è quella di "sistema ubuntuniano" e poi... rullo di tamburi: c'è quella con cui viene eseguito plex!

Io monto plex su Zentyal (una distro firewall basata su ubuntu)  per comodità ho cambiato l'utente con cui viene eseguito plex tramite /etc/default/plexmediaserver per rendere possibile tutto un gioco con samba4 e permessi vari...

Comunque per non andare OT la mia cartella dei Plug-ins si trova in "/home/plex-mediacenter/Library/Application Support/Plex Media Server/Plug-ins/" (lo so il nome utente non è plex-mediaserver) e non l'ho certo scelto io! La genera plex in automatico quando viene eseguito con un determinato utente che non sia quello prestabilito... che guarda caso si chiama "plex"

Quindi ricapitolando:

Quella classica è: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/" <--- i file sono di proprietà plex:plex quindi se usi Plex Media server con installazione classica e quindi il software runna su user "plex" devi mettere il plugin qua dentro e dagli un comando tipo "sudo chown -R plex:plex ItalianSubsAgent.bundle" in modo tale che l'utente "plex" possa leggere i file, altrimenti non li fila di striscio.

Quella di sistema è: "/usr/lib/plexmediaserver/Resources/Plug-ins/" è quella d'installazione, viene usata per copiare i file ogni qualvolta che viene generato un nuovo utente su cui far girare il software. Ha permessi root:root.

Quella generata (ed è anche quella che viene eseguita nel mio caso) è: "/home/plex-mediacenter/Library/Application Support/Plex Media Server/Plug-ins/" i file al suo interno hanno permessi plex-mediacenter:videostore quindi è quì che va copiato il plugin e ci devi dare anche un "sudo chown -R plex-mediacenter:videostore ItalianSubsAgent.bundle" in modo tale che l'utente (nel mio caso) plex-mediacenter possa caricare il plugin ed eseguirlo.

Davvero complimenti  Paolo, ottimo lavoro. Era proprio ciò che mi mancava per poter sfruttare decentemente Plex. Non so se sto sbagliando qualcosa io, però sarebbe ancora più utile se i sottotitoli venissero scaricati nella cartella del video, come fa xbmc per intenderci.

Salve  a tutti; stavo cercando un modo per scaricare in automatico i sottotitoli e sono finito qui; ho seguito tutte le istruzioni e mi compare tra gli agents, ma poi non mi scarica niente;
Allego qui sotto il LOG se qualcuno sa darmi qualche consiglio su come fare;
Ringrazio in anticipo qualsiasi aiuto;

com.plexapp.agents.italiansubs.log (4.76 KB)

L'idea è magnifica, purtroppo il log resituisce un errore e il contenuto non viene scaricato. Ti allego il file del log per provare il debug. Il server  è il 9.9.10 che gira su DS214play Synology.

Tengo le dita incrociate!

Peraltro, confrontando il mio log con quello di dennys91 direi che manifestano la stessa eccezione che impedisce lo scaricamento......

Io ho installato Plex Media Server su un notebook win 8.1, che comando attraverso l'app android plex con un samsung S4, per visualizzare i video con subs attraverso Chromecast sulla tv.

L'agent funziona bene, anche se non ho ben capito se sia possibile impostare il refresh dei sub ad un orario fisso; ad ogni modo forzando il refresh funziona bene. Ottimo lavoro! :)

Ho però molte difficoltà a far visualizzare - nella mia configurazione - i sottotitoli sulla tv; non credo dipenda dalla fonte dei subs o dall'agent,  ma resta abbastanza fastidioso come problema e - di fatto - svuota di valore il download automatico dei subs

Ciao ragazzi, ho aggiornato il plugin, con alcuni bugfix (tra cui l'errore segnalato da Luca e Dennys) e altre piccole migliorie.

Potete scaricarlo dal repository github: https://github.com/paolobernardi/italiansubsagent-for-plex oppure dal primo post di questo topic.

Ciao Paolo, random appare questo errore:

2014-10-05 11:47:10,264 (-4f7014c0) :  DEBUG (__init__:240) - [ ItaliansSubsAgent ] Subtitle s02e01 of Black Mirror downloaded (Zip Archive)
2014-10-05 11:47:10,264 (-4f7014c0) :  DEBUG (__init__:248) - [ ItaliansSubsAgent ] Try to extract the subtitle from Zip Archive
2014-10-05 11:47:10,265 (-4f7014c0) :  CRITICAL (agentkit:983) - Exception in the update function of agent named 'ItalianSubsAgent', called with guid 'com.plexapp.agents.thetvdb://253463/2/1?lang=en' (most recent call last):
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 979, in _update
    agent.update(obj, media, lang, force)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/ItalianSubsAgent.bundle/Contents/Code/__init__.py", line 322, in update
    subtitle = search_subtitle(name, filename, season, episode, tvdb_id)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/ItalianSubsAgent.bundle/Contents/Code/__init__.py", line 277, in search_subtitle
    subtitle_contents = unzip(subtitle_contents, episode)
  File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/ItalianSubsAgent.bundle/Contents/Code/__init__.py", line 249, in unzip
    z = zipfile.ZipFile(bfr)
  File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/zipfile.py", line 766, in __init__
    self._RealGetContents()
  File "/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/zipfile.py", line 807, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file
 
 
Riprovi qualche volta e poi funziona, cosa può essere?
 
Grazie mille dell'aiuto

Ciao, a me funzionava ed a un certo punto ha smesso di botto. Questo è il log

2014-10-06 15:12:18,073 (1e84) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2014-10-06 15:12:18,075 (1e84) :  DEBUG (core:359) - Using the standard policy
2014-10-06 15:12:18,075 (1e84) :  DEBUG (core:448) - Starting runtime component.
2014-10-06 15:12:18,078 (1e84) :  DEBUG (core:448) - Starting caching component.
2014-10-06 15:12:18,078 (1e84) :  DEBUG (core:448) - Starting data component.
2014-10-06 15:12:18,078 (1e84) :  DEBUG (core:448) - Starting networking component.
2014-10-06 15:12:18,081 (1e84) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-10-06 15:12:18,082 (1e84) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-10-06 15:12:18,082 (1e84) :  DEBUG (core:448) - Starting localization component.
2014-10-06 15:12:18,082 (1e84) :  INFO (localization:408) - Setting the default locale to en-us
2014-10-06 15:12:18,084 (1e84) :  DEBUG (core:448) - Starting messaging component.
2014-10-06 15:12:18,085 (1e84) :  DEBUG (core:448) - Starting debugging component.
2014-10-06 15:12:18,085 (13d4) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.italiansubs'
2014-10-06 15:12:18,085 (1e84) :  DEBUG (core:448) - Starting services component.
2014-10-06 15:12:18,088 (1e84) :  DEBUG (core:448) - Starting myplex component.
2014-10-06 15:12:18,089 (1e84) :  DEBUG (core:448) - Starting notifications component.
2014-10-06 15:12:18,285 (1e84) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.italiansubs in namespace 'metadata'
2014-10-06 15:12:18,293 (1e84) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-10-06 15:12:18,329 (1ea0) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-10-06 15:12:18,329 (1e84) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-10-06 15:12:18,332 (1ea0) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2014-10-06 15:12:18,332 (1e84) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-10-06 15:12:18,334 (31c4) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-10-06 15:12:18,335 (1e84) :  DEBUG (core:150) - Finished starting framework core
2014-10-06 15:12:18,335 (1e84) :  DEBUG (core:558) - Loading plug-in code
2014-10-06 15:12:18,371 (31c4) :  DEBUG (core:536) - Machine identifier is 45a592d2ba24bc4a870d3c079dbe52a5495976c7
2014-10-06 15:12:18,371 (31c4) :  DEBUG (core:537) - Server version is 0.9.9.14.531-7eef8c6
2014-10-06 15:12:18,632 (1e84) :  DEBUG (core:564) - Finished loading plug-in code
2014-10-06 15:12:18,680 (1e84) :  DEBUG (agentkit:1020) - Creating new agent class called ItalianSubsAgent
2014-10-06 15:12:18,680 (1e84) :  DEBUG (agentkit:899) - Updating agent information: [{'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': 'ItalianSubsAgent'}]
2014-10-06 15:12:18,683 (1e84) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQo1CmRpY3QKbGlzdApkaWN0Cmxpc3QKbGlzdAoyCnMzMApjb20ucGxleGFwcC5hZ2VudHMuaXRhbGlhbnN1YnNzMTAKaWRlbnRpZmllcnIxCnMxMAphZ2VudF9pbmZvMQpyMgoxMApyMwpzMTEKbWVkaWFfdHlwZXNuczEyCmFjY2VwdHNfZnJvbW5zMTQKZmFsbGJhY2tfYWdlbnRuczE0CmNvbnRyaWJ1dGVzX3RvcjQKczkKbGFuZ3VhZ2VzYjFzMjAKcGVyc2lzdF9zdG9yZWRfZmlsZXNpMApzNwp2ZXJzaW9uYjBzMTYKcHJpbWFyeV9wcm92aWRlcmIxczUKcHJlZnNzMTYKSXRhbGlhblN1YnNBZ2VudHM0Cm5hbWUxCnM3ClRWX1Nob3cxCnMyCmVucjAK'
2014-10-06 15:12:18,700 (1e84) :  DEBUG (logkit:13) - ItaSubsAgent started!
2014-10-06 15:12:18,700 (1e84) :  INFO (core:609) - Started plug-in
2014-10-06 15:12:18,701 (1e84) :  DEBUG (socketinterface:160) - Starting socket server
2014-10-06 15:12:18,704 (1e84) :  DEBUG (runtime:1111) - Created a thread named 'start'
2014-10-06 15:12:18,706 (1e84) :  INFO (socketinterface:184) - Socket server started on port 49617
2014-10-06 15:12:18,707 (1e84) :  INFO (pipeinterface:25) - Entering run loop
2014-10-06 15:12:18,707 (1e84) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2014-10-06 15:12:18,713 (1e84) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2014-10-06 15:12:18,714 (1e84) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 155 bytes
2014-10-06 15:12:18,746 (1d88) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.italiansubs/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCmVuczQKbGFuZ3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZWIwczYKbWFudWFscjEKczYKa3dhcmdzMwpzNDgKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGI6Ly8yNzY1NjQvMS8xMz9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjYKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGJzMTMKcHJpbWFyeV9hZ2VudHIwCg__
2014-10-06 15:12:18,819 (1d88) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.italiansubs/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCmVuczQKbGFuZ3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZWIwczYKbWFudWFscjEKczYKa3dhcmdzMwpzNDgKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGI6Ly8yNzY1NjQvMS8xMz9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjYKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGJzMTMKcHJpbWFyeV9hZ2VudHIwCg__
2014-10-06 15:12:18,821 (1d88) :  INFO (agentkit:923) - Searching for matches for {'guid': 'com.plexapp.agents.thetvdb://276564/1/13?lang=en', 'force': True, 'primary_agent': 'com.plexapp.agents.thetvdb'}
2014-10-06 15:12:18,821 (1d88) :  DEBUG (accessor:68) - Creating a new read-only model access point for provider com.plexapp.agents.thetvdb in namespace 'metadata'
2014-10-06 15:12:18,834 (1d88) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.thetvdb://276564/1/13?lang=en
2014-10-06 15:12:18,841 (1d88) :  DEBUG (model:230) - Deserializing from C:\Users\Eraldo\AppData\Local\Plex Media Server\Metadata\TV Shows\c\33e099a332bef5fb8e4fb8c760cf2d5881251f8.bundle\Contents\com.plexapp.agents.thetvdb\Info.xml
2014-10-06 15:12:18,865 (1ea0) :  DEBUG (services:362) - Loaded services
2014-10-06 15:12:18,888 (28f0) :  DEBUG (services:438) - No shared code to load
2014-10-06 15:12:18,904 (1d88) :  DEBUG (runtime:918) - Response: [200] str, 600 bytes
2014-10-06 15:12:18,933 (35f8) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.italiansubs/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKOApzMgplbnM0CmxhbmdpMApzNwp2ZXJzaW9uYjFzNQpmb3JjZXM0NQpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYjovLzI3NjU2NC8xP2xhbmc9ZW5zMTAKcGFyZW50R1VJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0CjE1NDBzNApkYmlkczQ4CmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMjc2NTY0LzEvMTM%40bGFuZz1lbnM0Cmd1aWRzNApudWxsczIKaWRyMAo_
2014-10-06 15:12:18,934 (35f8) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.italiansubs/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKOApzMgplbnM0CmxhbmdpMApzNwp2ZXJzaW9uYjFzNQpmb3JjZXM0NQpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYjovLzI3NjU2NC8xP2xhbmc9ZW5zMTAKcGFyZW50R1VJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0CjE1NDBzNApkYmlkczQ4CmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMjc2NTY0LzEvMTM@bGFuZz1lbnM0Cmd1aWRzNApudWxsczIKaWRyMAo_
2014-10-06 15:12:18,934 (35f8) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.thetvdb://276564/1/13?lang=en
2014-10-06 15:12:18,936 (35f8) :  ERROR (model:201) - Cannot read model from C:\Users\Eraldo\AppData\Local\Plex Media Server\Metadata\TV Shows\c\33e099a332bef5fb8e4fb8c760cf2d5881251f8.bundle\Contents\com.plexapp.agents.italiansubs
2014-10-06 15:12:18,937 (35f8) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/1540/tree'
2014-10-06 15:12:18,944 (35f8) :  DEBUG (logkit:13) - [ ItaliansSubsAgent ] Searching the show The Strain among ItalianSubs shows
2014-10-06 15:12:18,944 (35f8) :  DEBUG (logkit:13) - [ ItaliansSubsAgent ] Getting shows list from ItalianSubs
2014-10-06 15:12:18,954 (35f8) :  DEBUG (networking:167) - Fetching 'https://api.italiansubs.net/api/rest/shows?apikey=3f3ac8138a339fd4ed29eefcee75a8bb' from the HTTP cache
2014-10-06 15:12:18,992 (35f8) :  CRITICAL (core:572) - Exception in the update function of agent named 'ItalianSubsAgent', called with guid 'com.plexapp.agents.thetvdb://276564/1/13?lang=en' (most recent call last):
  File "C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 979, in _update
    agent.update(obj, media, lang, force)
  File "C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code\__init__.py", line 304, in update
    subtitle = search_subtitle(name, filename, season, episode)
  File "C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code\__init__.py", line 251, in search_subtitle
    id_show = doSearch(name)
  File "C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code\__init__.py", line 88, in doSearch
    shows = get_shows()
  File "C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code\__init__.py", line 37, in get_shows
    name_t = tvshow.find('name').text.strip().lower()
AttributeError: 'NoneType' object has no attribute 'strip'

2014-10-06 15:12:18,993 (35f8) : DEBUG (model:225) - Serializing to C:\Users\Eraldo\AppData\Local\Plex Media Server\Metadata\TV Shows\c\33e099a332bef5fb8e4fb8c760cf2d5881251f8.bundle\Contents\com.plexapp.agents.italiansubs\Info.xml
2014-10-06 15:12:18,996 (35f8) : DEBUG (runtime:918) - Response: [200] str, 16 bytes
2014-10-06 15:12:57,667 (33d4) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.italiansubs/prefs
2014-10-06 15:12:57,667 (33d4) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.italiansubs/prefs
2014-10-06 15:12:57,671 (33d4) : DEBUG (preferences:256) - Loaded preferences from DefaultPrefs.json
2014-10-06 15:12:57,674 (33d4) : DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.italiansubs
2014-10-06 15:12:57,677 (33d4) : DEBUG (runtime:918) - Response: [200] MediaContainer, 416 bytes
2014-10-06 15:15:05,903 (418) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.italiansubs/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCmVuczQKbGFuZ3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZWIwczYKbWFudWFscjEKczYKa3dhcmdzMwpzNDgKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGI6Ly8yNzY1NjQvMS8xMz9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjYKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGJzMTMKcHJpbWFyeV9hZ2VudHIwCg__
2014-10-06 15:15:05,904 (418) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.italiansubs/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCmVuczQKbGFuZ3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZWIwczYKbWFudWFscjEKczYKa3dhcmdzMwpzNDgKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGI6Ly8yNzY1NjQvMS8xMz9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjYKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGJzMTMKcHJpbWFyeV9hZ2VudHIwCg__
2014-10-06 15:15:05,905 (418) : INFO (agentkit:923) - Searching for matches for {‘guid’: ‘com.plexapp.agents.thetvdb://276564/1/13?lang=en’, ‘force’: True, ‘primary_agent’: ‘com.plexapp.agents.thetvdb’}
2014-10-06 15:15:05,907 (418) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.thetvdb://276564/1/13?lang=en
2014-10-06 15:15:05,907 (418) : DEBUG (model:230) - Deserializing from C:\Users\Eraldo\AppData\Local\Plex Media Server\Metadata\TV Shows\c\33e099a332bef5fb8e4fb8c760cf2d5881251f8.bundle\Contents\com.plexapp.agents.thetvdb\Info.xml
2014-10-06 15:15:05,940 (418) : DEBUG (runtime:918) - Response: [200] str, 600 bytes
2014-10-06 15:15:05,951 (2538) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.italiansubs/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKOApzMgplbnM0CmxhbmdpMApzNwp2ZXJzaW9uYjFzNQpmb3JjZXM0NQpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYjovLzI3NjU2NC8xP2xhbmc9ZW5zMTAKcGFyZW50R1VJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0CjE1NDBzNApkYmlkczQ4CmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMjc2NTY0LzEvMTM%40bGFuZz1lbnM0Cmd1aWRzNApudWxsczIKaWRyMAo_
2014-10-06 15:15:05,953 (2538) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.italiansubs/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKOApzMgplbnM0CmxhbmdpMApzNwp2ZXJzaW9uYjFzNQpmb3JjZXM0NQpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYjovLzI3NjU2NC8xP2xhbmc9ZW5zMTAKcGFyZW50R1VJRHM3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZXM0CjE1NDBzNApkYmlkczQ4CmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMjc2NTY0LzEvMTM@bGFuZz1lbnM0Cmd1aWRzNApudWxsczIKaWRyMAo_
2014-10-06 15:15:05,953 (2538) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.thetvdb://276564/1/13?lang=en
2014-10-06 15:15:05,954 (2538) : DEBUG (model:230) - Deserializing from C:\Users\Eraldo\AppData\Local\Plex Media Server\Metadata\TV Shows\c\33e099a332bef5fb8e4fb8c760cf2d5881251f8.bundle\Contents\com.plexapp.agents.italiansubs\Info.xml
2014-10-06 15:15:05,957 (2538) : DEBUG (networking:172) - Requesting ‘http://127.0.0.1:32400/library/metadata/1540/tree
2014-10-06 15:15:05,966 (2538) : DEBUG (logkit:13) - [ ItaliansSubsAgent ] Searching the show The Strain among ItalianSubs shows
2014-10-06 15:15:05,967 (2538) : DEBUG (logkit:13) - [ ItaliansSubsAgent ] Getting shows list from ItalianSubs
2014-10-06 15:15:05,977 (2538) : DEBUG (networking:167) - Fetching ‘https://api.italiansubs.net/api/rest/shows?apikey=3f3ac8138a339fd4ed29eefcee75a8bb’ from the HTTP cache
2014-10-06 15:15:05,993 (2538) : CRITICAL (core:572) - Exception in the update function of agent named ‘ItalianSubsAgent’, called with guid ‘com.plexapp.agents.thetvdb://276564/1/13?lang=en’ (most recent call last):
File “C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py”, line 979, in update
agent.update(obj, media, lang, force)
File "C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code_init
.py", line 304, in update
subtitle = search_subtitle(name, filename, season, episode)
File “C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code_init_.py”, line 251, in search_subtitle
id_show = doSearch(name)
File “C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code_init_.py”, line 88, in doSearch
shows = get_shows()
File “C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code_init_.py”, line 37, in get_shows
name_t = tvshow.find(‘name’).text.strip().lower()
AttributeError: ‘NoneType’ object has no attribute ‘strip’

2014-10-06 15:15:05,996 (2538) : DEBUG (model:225) - Serializing to C:\Users\Eraldo\AppData\Local\Plex Media Server\Metadata\TV Shows\c\33e099a332bef5fb8e4fb8c760cf2d5881251f8.bundle\Contents\com.plexapp.agents.italiansubs\Info.xml
2014-10-06 15:15:06,003 (2538) : DEBUG (runtime:918) - Response: [200] str, 16 bytes
 

Ciao Paolo, random appare questo errore:

2014-10-05 11:47:10,264 (-4f7014c0) :  DEBUG (__init__:240) - [ ItaliansSubsAgent ] Subtitle s02e01 of Black Mirror downloaded (Zip Archive)
[CUT]

Dovrebbe essere un problema relativo alle api di ItalianSubs, praticamente si è superato il limite di download per quel sottotitolo e si viene bloccati per alcune ore (solo per quel sottotitolo). Devo indagare meglio, per comprendere se si applica al singolo utente, oppure al plugin (e sarebbe un problema), o, ancora, un problema temporaneo di Itasa.

Ciao, a me funzionava ed a un certo punto ha smesso di botto. Questo è il log

File “C:\Users\Eraldo\AppData\Local\Plex Media Server\Plug-ins\ItalianSubsAgent.bundle\Contents\Code_init_.py”, line 37, in get_shows
name_t = tvshow.find(‘name’).text.strip().lower()
AttributeError: ‘NoneType’ object has no attribute ‘strip’

 

Stai usando l'ultima versione che ho reso disponibile qualche giorno fa? Dovrebbe essere un bug che è stato corretto.

Ciao a tutti.

ciao a tutti! inanzitutto volevo ringraziarti per il lavorone gigante che hai fatto! 

Volevo chiederti una delucidazone sul tuo plugin..... quando aggiungo a plex un episodio di una serie v in cui i sottotitoli non sono ancora disponibili su italiansub ovviamente non me li scarica, appena saranno disponibili devo aggiornare il singolo episodio oppure mi basta aggiornare la libreria direttamente dalla home?

Il plugin funziona anche per i film vero?

ciao a tutti! inanzitutto volevo ringraziarti per il lavorone gigante che hai fatto! 

Volevo chiederti una delucidazone sul tuo plugin..... quando aggiungo a plex un episodio di una serie v in cui i sottotitoli non sono ancora disponibili su italiansub ovviamente non me li scarica, appena saranno disponibili devo aggiornare il singolo episodio oppure mi basta aggiornare la libreria direttamente dalla home?

Il plugin funziona anche per i film vero?

No, per i film non funziona :) Posso aggiungere il supporto in uno dei prossimi aggiornamenti.

Per quanto riguarda l'altra domanda: devi aggiornare manualmente il singolo episodio. Forse ho trovato una soluzione, però devo ancora testarla.