[suboob] language hashtable moved from opensubtitles backend to application

This commit is contained in:
Julien Veyssier 2013-03-12 20:50:08 +01:00
commit e98008338a
6 changed files with 33 additions and 26 deletions

View file

@ -24,6 +24,7 @@ from PyQt4.QtGui import QFrame, QImage, QPixmap
from weboob.applications.qcineoob.ui.movie_ui import Ui_Movie
from weboob.capabilities.base import NotAvailable, NotLoaded
from weboob.applications.suboob.suboob import LANGUAGE_CONV
class Movie(QFrame):
def __init__(self, movie, parent=None):
@ -31,6 +32,10 @@ class Movie(QFrame):
self.parent = parent
self.ui = Ui_Movie()
self.ui.setupUi(self)
langs = LANGUAGE_CONV.keys()
langs.sort()
for lang in langs:
self.ui.langCombo.addItem(lang)
self.connect(self.ui.castingButton, SIGNAL("clicked()"), self.casting)
self.connect(self.ui.torrentButton, SIGNAL("clicked()"), self.searchTorrent)

View file

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>700</width>
<width>748</width>
<height>463</height>
</rect>
</property>
@ -108,8 +108,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>660</width>
<height>292</height>
<width>708</width>
<height>293</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2"/>
@ -130,8 +130,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>660</width>
<height>292</height>
<width>78</width>
<height>18</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8"/>
@ -149,7 +149,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>700</width>
<width>748</width>
<height>23</height>
</rect>
</property>