pax_global_header 0000666 0000000 0000000 00000000064 14042356110 0014506 g ustar 00root root 0000000 0000000 52 comment=18d41565f955028f9fcd2f6cc437f5f1cb717401
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-opensubtitles/ 0000775 0000000 0000000 00000000000 14042356110 0023677 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-opensubtitles/modules/ 0000775 0000000 0000000 00000000000 14042356110 0025347 5 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-opensubtitles/modules/opensubtitles/ 0000775 0000000 0000000 00000000000 14042356110 0030247 5 ustar 00root root 0000000 0000000 __init__.py 0000664 0000000 0000000 00000001514 14042356110 0032302 0 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-opensubtitles/modules/opensubtitles # -*- coding: utf-8 -*-
# Copyright(C) 2013 Julien Veyssier
#
# This file is part of a woob module.
#
# This woob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This woob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see .
from .module import OpensubtitlesModule
__all__ = ['OpensubtitlesModule']
woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-opensubtitles/modules/opensubtitles/browser.py0000664 0000000 0000000 00000003646 14042356110 0032315 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2013 Julien Veyssier
#
# This file is part of a woob module.
#
# This woob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This woob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this woob module. If not, see .
from woob.browser import PagesBrowser, URL
from woob.applications.subtitles.subtitles import LANGUAGE_CONV
from .pages import SubtitlesPage, SearchPage, SubtitlePage, SeriesSubtitlePage
__all__ = ['OpensubtitlesBrowser']
class OpensubtitlesBrowser(PagesBrowser):
BASEURL = 'https://www.opensubtitles.org'
search = URL('/en/search2/sublanguageid-(?P.*)/moviename-(?P.*)(/offset-\d*)?', SearchPage)
subtitles = URL('/en/search/sublanguageid-(?P.*)/idmovie-(?P.*)',
'/en/search/imdbid-\d*/sublanguageid-(?P.*)/moviename-(?P.*)', SubtitlesPage)
subtitle = URL('/en/subtitles/(?P.*)', SubtitlePage)
series_subtitle = URL('/en/ssearch/sublanguageid-(?P.*)/idmovie-(?P.*)', SeriesSubtitlePage)
file = URL('/en/subtitleserve/sub/(?P.+)')
def iter_subtitles(self, language, pattern):
lang = LANGUAGE_CONV[language]
return self.search.go(language=lang, movie=pattern).iter_subtitles()
def get_subtitle(self, id):
return self.subtitle.go(id=id).get_subtitle(id)
def get_file(self, id):
return self.file.go(id=id).content
favicon.png 0000664 0000000 0000000 00000005567 14042356110 0032340 0 ustar 00root root 0000000 0000000 woob-18d41565f955028f9fcd2f6cc437f5f1cb717401-modules-opensubtitles/modules/opensubtitles PNG
IHDR @ @ iq bKGD pHYs tIME!m IDATxypU?s_^IXQV"u\h:ک3mqcHY8cbTpP#Nk[ť,Z-A^K}y!I!g&r=QUf[7 \-p1 Q@b&clwAh4`8Ʝh^H6~=g 9o8V$~ԑlEPCG. <ȡf`D9CU} W-HowU˳I;S%&3oL -5Mv*1oY&b>H@$( Yhf\zdzi1d;Geh!&UƊ.CN+tH~hjK1S~b"n$Z/||mY-iɚVҀ#]Npohtoxӓ',}'vni5٣d1|9r8gS/nk:Rk˶7acS"8/qIȑ&7/AV;4 -.bd$o'/GdMJ͝Wzt3?
xِQ2sdʼ)cyhxӲR8C_S}n0ݟJnwevYHls@M ⡨}0ɺ[G9c1Жv]rs)2i^pq@9I^1WM|/3|!XXXIơ17 Jn?%2:Mp~`]
75ԓ6 |AS+4ml=^O7/Wɴz-~x%
V dDŸ:>ѽ] _:kPz"H
`T}P-?إ5
a6i:imn@~ne.TY\
ʃ٣p4ɫx#Jѿ%xʜ{g9doeCl׆]EQ)&*Qk7??-N$x1_ _:3뒍7G_壵5z1|-m{
Eu۷}"8XMG/K 8eO^}io^!t?$BG؟詧.O ekΚ$M_4_80iOoJé"{C>h_+h;pܛL;Gű~z= AMf-g4ǰ4{#MC+x9[\icڅ3Cyh[ծʏ] Ѐ5KRd!Ap vKIg\lNGs1A${.iE&eP31Ӈ@D*!:52$v<P(_yhb|P;eD0u \W++<1^Pnp0V-$ 䊐ܺF*By|سF =`;;̪$Sp_m7R6QV
ǻ+p`ϸף88O|N
LXx5t z?VyP#T$[mLVVCEXb"$gn\9㰳 4s0? 8;Wl*#Dӓ_p"`y3