ramiro / service.subtitles.subdivx

Subdivx.com subtitles download Add-on for Kodi/XBMC v13 Gotham up to Kodi Matrix v19.
GNU General Public License v2.0
16 stars 22 forks source link

SUBDIVX - Download: Expected content not found in selected subtitle detail page #7

Closed upadrian closed 9 years ago

upadrian commented 9 years ago

El problema es que ellos agregaron una pagina intermedia para descargar los subtitulos que antes no estaba.

20:17:07 1241.854004 T:1481634880   DEBUG: SUBDIVX - get_all_subs: Subtitles found: (subdivx_id = X6XNDM3NzgzX-the-strain-s02e04) "subtitulos parathe strain s02e04 proper  -fum -   x264-2hd
 proper 720p  x264-2hd[rartv]  :: thesubfactory ::"
20:17:07 1241.860596 T:1481634880   DEBUG: SUBDIVX - get_all_subs: Trying page 2
20:17:07 1241.861328 T:1481634880   DEBUG: SUBDIVX - get_url: Fetching http://www.subdivx.com/index.php?accion=5&masdesc=&oxdown=1&pg=2&buscar=The+Strain+S02E04
20:17:08 1242.288696 T:1481634880   DEBUG: SUBDIVX - get_all_subs: Returning [{'descr': u'de www tusubtitulo com para the strain s02e04  (2hd) ~ proper 720p  (2hd) y 720p/1080p web-dl (juggalotus) en espa\xf1ol (latinoam\xe9rica)  \t\t\t\t \t\t\t\t \t\t\t\t',
                                              'downloads': 4176,
                                              'rating': 4,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM3NTAyX-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'MarcusL'},
                                             {'descr': u'tusubtitulo espa\xf1ol-latino, versiones the strain s02e04  x264-2hd (309 81 mb) - the strain s02e04  -fum (379 01 mb) & the strain s02e04-720p  x264-killers (1 09 gb) :-) \t\t\t\t \t\t\t\t \t\t\t\t',
                                              'downloads': 2490,
                                              'rating': 2,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM3NTE0X-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'snot311'},
                                             {'descr': u'subt\xedtulos hechos por m\xed  traducci\xf3n y ortograf\xeda 100% ok (cursivas incl ), para versiones the strain s02e04  x264-2hd - the strain s02e04 720p, x264-2hd y the strain s02e04   fum  espa\xf1ol neutro  saludos! \t\t\t\t \t\t\t\t \t\t\t\t',
                                              'downloads': 1539,
                                              'rating': 1,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM3NTEwX-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'fvetero'},
                                             {'descr': u'the strain s02e04 the silver angel  x264-2hd    traducci\xf3n: tusubtitulo    edici\xf3n: demonofthefall para "www subadictos net"    \xa1y no busques m\xe1s! \x95 \xa1\xdanete a nuestro equipo! \x95',
                                              'downloads': 1169,
                                              'rating': 1,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM3NTQwX-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'SubAdictos'},
                                             {'descr': u'the strain s02e04 the silver angel  x264-2hd    traducci\xf3n: tusubtitulo    edici\xf3n: demonofthefall para "www subadictos net"    \xa1y no busques m\xe1s! \x95 \xa1\xdanete a nuestro equipo! \x95',
                                              'downloads': 595,
                                              'rating': 0,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM3NTYyX-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'SubAdictos'},
                                             {'descr': u'subtitulos parathe strain s02e04 proper  -fum -   x264-2hd\r proper 720p  x264-2hd[rartv]  :: thesubfactory ::',
                                              'downloads': 438,
                                              'rating': 0,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM3NzgzX-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'Izhar'},
                                             {'descr': u'subt\xedtulos hechos por m\xed, para versi\xf3n the strain s02e04 the silver angel 1080p web-dl dd5 1 h 264-juggalotus 100% ok  espa\xf1ol neutro  saludos',
                                              'downloads': 210,
                                              'rating': 0,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM3NjU3X-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'fvetero'},
                                             {'descr': u'the strain s02e04 - the silver angel \r atencion los he ajustado para la nueva version "real proper" que sali\xf3 hoy, con los otros siempre habia un defasaje en los tiempos',
                                              'downloads': 178,
                                              'rating': 0,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM4MjE1X-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'MightyThor'},
                                             {'descr': u'los de argenteam sincronizados para las versiones the strain s02e04 the silver angel 1080p web-dl dd5 1 h 264-juggalotus de 1 63 gb y the strain s02e04 the silver angel 72op web-dl dd5 1 h 264-juggalotus de 1 44 gb  \r todo el cr\xe9dito para ellos',
                                              'downloads': 136,
                                              'rating': 0,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM4MTI1X-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'AllEyezOnMe'},
                                             {'descr': u'espa\xf1ol latino para la versi\xf3n the strain s02e04 the silver angel 1080p web-dl dd5 1 h 264-juggalotus',
                                              'downloads': 110,
                                              'rating': 0,
                                              'score': 5,
                                              'subdivx_id': u'X6XNDM4MDM4X-the-strain-s02e04',
                                              'sync': False,
                                              'uploader': 'h3n4n77'}]
20:17:08 1242.296265 T:1533789248   DEBUG: WaitOnScriptResult- plugin returned successfully
20:17:08 1242.297363 T:1481634880    INFO: CPythonInvoker(12, /storage/.kodi/addons/service.subtitles.subdivx/service.py): script successfully run
20:17:08 1242.405640 T:1481634880    INFO: Python script stopped
20:17:13 1247.217773 T:1533789248   DEBUG: StartScript - calling plugin Subdivx.com('plugin://service.subtitles.subdivx/','11','?action=download&filename=http%3a%2f%2fcs541104v4.vk.me%2f5%2fu313940752%2fvideos%2f7db7d5647a.720.mp4%3fextra%3dB-qhJg5NZQCv887xo7nugH7AYn1T7RXai3KX7gnJivuz0r3niOtqlwKjLqwtwxJfIOwFpEqE18GdqMpWSE2_jBrIhsmeJn4I&id=X6XNDM3NTAyX-the-strain-s02e04')
20:17:13 1247.370483 T:1498412096   DEBUG: CPythonInvoker(13, /storage/.kodi/addons/service.subtitles.subdivx/service.py): the source file to load is "/storage/.kodi/addons/service.subtitles.subdivx/service.py"
20:17:13 1247.370850 T:1498412096   DEBUG: CPythonInvoker(13, /storage/.kodi/addons/service.subtitles.subdivx/service.py): setting the Python path to /storage/.kodi/addons/service.subtitles.subdivx:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
20:17:13 1247.371094 T:1498412096   DEBUG: CPythonInvoker(13, /storage/.kodi/addons/service.subtitles.subdivx/service.py): entering source directory /storage/.kodi/addons/service.subtitles.subdivx
20:17:13 1247.371582 T:1498412096   DEBUG: CPythonInvoker(13, /storage/.kodi/addons/service.subtitles.subdivx/service.py): instantiating addon using automatically obtained id of "service.subtitles.subdivx" dependent on version 2.14.0 of the xbmc.python api
20:17:13 1247.579834 T:1498412096    INFO: SUBDIVX - main: Version: 0.0.7
20:17:13 1247.580688 T:1498412096   DEBUG: SUBDIVX - ensure_workdir: Switched workdir to UTF-8
20:17:13 1247.589355 T:1498412096   DEBUG: SUBDIVX - get_url: Fetching http://www.subdivx.com/X6XNDM3NTAyX-the-strain-s02e04
20:17:13 1248.042969 T:1498412096   FATAL: SUBDIVX - Download: Expected content not found in selected subtitle detail page
Krakatomi commented 9 years ago

Mismo error desde OSMC - Kodi 15.1

gboado commented 9 years ago

De lo que pude investigar el problema es que ahora la respuesta al URL de los datos detallados, incluyendo la dirección de dónde bajar el subtítulo, es diferente si el cliente manda los cookies adecuados que si no lo hace. La respuesta que recibe el Kodi es la misma que si se borran los cookies de subdivx.com en el browser o se inhabilitan los cookies del todo. La única forma de resolver esto parece ser almacenar y procesar los cookies como lo hace el browser. Por cierto, esto requiere también estar logueado a subdivx. Aún con los cookies habilitados (pero no almacenados) sin estar logueado el proceso no funciona.

ramiro commented 9 years ago

@upadrian, @gboado

Thanks a lot for your research and patience.

A fix foir this is proposed by @felexx90 as part of #8 and hopefully fixed in c3efb29b8fb93da7de3b939ac75896ab13a0948e