diff --git a/modules/imdb/backend.py b/modules/imdb/backend.py
index 782eb983..8fb30a05 100644
--- a/modules/imdb/backend.py
+++ b/modules/imdb/backend.py
@@ -105,6 +105,7 @@ class ImdbBackend(BaseBackend, ICapCinema):
movie.country = mov.country
movie.note = mov.note
movie.roles = mov.roles
+ movie.genres = mov.genres
movie.short_description = mov.short_description
movie.thumbnail_url = mov.thumbnail_url
diff --git a/modules/imdb/browser.py b/modules/imdb/browser.py
index c3b48f24..519cfe0b 100644
--- a/modules/imdb/browser.py
+++ b/modules/imdb/browser.py
@@ -106,6 +106,7 @@ class ImdbBrowser(BaseBrowser):
short_description = NotAvailable
thumbnail_url = NotAvailable
other_titles = []
+ genres = []
roles = {}
if 'title' not in jres:
@@ -115,6 +116,9 @@ class ImdbBrowser(BaseBrowser):
thumbnail_url = unicode(jres['poster'])
if 'directors' in jres:
short_description = unicode(', '.join(jres['directors']))
+ if 'genres' in jres:
+ for g in jres['genres']:
+ genres.append(g)
if 'runtime' in jres:
dur_str = jres['runtime'][0].split(':')
if len(dur_str) == 1:
@@ -154,6 +158,7 @@ class ImdbBrowser(BaseBrowser):
movie.other_titles = other_titles
movie.release_date = release_date
movie.duration = duration
+ movie.genres = genres
movie.pitch = pitch
movie.country = country
movie.note = note
diff --git a/weboob/applications/cineoob/cineoob.py b/weboob/applications/cineoob/cineoob.py
index c46b796c..6741f01e 100644
--- a/weboob/applications/cineoob/cineoob.py
+++ b/weboob/applications/cineoob/cineoob.py
@@ -52,6 +52,10 @@ class MovieInfoFormatter(IFormatter):
if not empty(obj.duration):
result += 'Duration: %smin\n' % obj.duration
result += 'Note: %s\n' % obj.note
+ if not empty(obj.genres):
+ result += '\n%sGenres%s\n' % (self.BOLD, self.NC)
+ for g in obj.genres:
+ result += ' * %s\n' % g
if not empty(obj.roles):
result += '\n%sRelated persons%s\n' % (self.BOLD, self.NC)
for role, lpersons in obj.roles.items():
diff --git a/weboob/applications/qcineoob/movie.py b/weboob/applications/qcineoob/movie.py
index 748dc375..a420be23 100644
--- a/weboob/applications/qcineoob/movie.py
+++ b/weboob/applications/qcineoob/movie.py
@@ -55,6 +55,14 @@ class Movie(QFrame):
self.ui.otherTitlesPlain.setPlainText('\n'.join(movie.other_titles))
else:
self.ui.otherTitlesPlain.parent().hide()
+ if not empty(movie.genres):
+ genres = u''
+ for g in movie.genres:
+ genres += '%s, ' % g
+ genres = genres[:-2]
+ self.ui.genresLabel.setText(genres)
+ else:
+ self.ui.genresLabel.parent().hide()
if not empty(movie.release_date):
self.ui.releaseDateLabel.setText(movie.release_date.strftime('%Y-%m-%d'))
else:
diff --git a/weboob/applications/qcineoob/torrent.py b/weboob/applications/qcineoob/torrent.py
index 870b2ae3..b84ca9ca 100644
--- a/weboob/applications/qcineoob/torrent.py
+++ b/weboob/applications/qcineoob/torrent.py
@@ -48,6 +48,17 @@ class Torrent(QFrame):
if not empty(torrent.magnet):
self.ui.downloadButton.setText(u'Download not available\nbut magnet link provided')
self.ui.downloadButton.setToolTip(u'Use the magnet link')
+ if not empty(torrent.description):
+ self.ui.descriptionPlain.setText(u'%s' % torrent.description)
+ else:
+ self.ui.descriptionPlain.parent().hide()
+ if not empty(torrent.files):
+ files = u''
+ for f in torrent.files:
+ files += '%s\n' % f
+ self.ui.filesPlain.setText(u'%s' % files)
+ else:
+ self.ui.filesPlain.parent().hide()
if not empty(torrent.magnet):
self.ui.magnetEdit.setText(u'%s' % torrent.magnet)
else:
diff --git a/weboob/applications/qcineoob/ui/movie.ui b/weboob/applications/qcineoob/ui/movie.ui
index 6399fbd3..765a7d6a 100644
--- a/weboob/applications/qcineoob/ui/movie.ui
+++ b/weboob/applications/qcineoob/ui/movie.ui
@@ -18,8 +18,8 @@
- 2000
- 600
+ 10000
+ 10000
@@ -149,7 +149,7 @@
16777215
- 600
+ 9000
@@ -182,6 +182,12 @@
-
+
+
+ 75
+ true
+
+
Id:
@@ -217,6 +223,12 @@
-
+
+
+ 75
+ true
+
+
Title:
@@ -232,6 +244,281 @@
+ -
+
+
+
+ 16777215
+ 35
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 75
+ true
+
+
+
+ Duration:
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 16777215
+ 35
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 75
+ true
+
+
+
+ Release date:
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 16777215
+ 150
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 75
+ true
+
+
+
+ Pitch:
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse
+
+
+
+
+
+
+ -
+
+
+
+ 16777215
+ 35
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 75
+ true
+
+
+
+ Country:
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 16777215
+ 35
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 75
+ true
+
+
+
+ Genres:
+
+
+
+ -
+
+
+
+
+
+ true
+
+
+
+
+
+
+ -
+
+
+
+ 16777215
+ 35
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 75
+ true
+
+
+
+ Note:
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+ 16777215
+ 200
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
+
-
+
+
+
+ 75
+ true
+
+
+
+ All release dates:
+
+
+
+ -
+
+
+ Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse
+
+
+
+
+
+
-
@@ -261,6 +548,12 @@
16777215
+
+
+ 75
+ true
+
+
Other titles:
@@ -276,198 +569,6 @@
- -
-
-
-
- 16777215
- 35
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
-
-
- Duration:
-
-
-
- -
-
-
-
-
-
-
-
-
-
- -
-
-
-
- 16777215
- 35
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
-
-
- Release date:
-
-
-
- -
-
-
-
-
-
-
-
-
-
- -
-
-
-
- 16777215
- 200
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
-
-
- Pitch:
-
-
-
- -
-
-
- Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse
-
-
-
-
-
-
- -
-
-
-
- 16777215
- 35
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
-
-
- Country:
-
-
-
- -
-
-
-
-
-
-
-
-
-
- -
-
-
-
- 16777215
- 35
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
-
-
- Note:
-
-
-
- -
-
-
-
-
-
-
-
-
-
- -
-
-
-
- 16777215
- 200
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
-
-
-
-
- All release dates:
-
-
-
- -
-
-
- Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse
-
-
-
-
-
-
diff --git a/weboob/applications/qcineoob/ui/person.ui b/weboob/applications/qcineoob/ui/person.ui
index 3e53f736..91e3fb59 100644
--- a/weboob/applications/qcineoob/ui/person.ui
+++ b/weboob/applications/qcineoob/ui/person.ui
@@ -107,6 +107,12 @@ filmography
-
+
+
+ 75
+ true
+
+
Id:
@@ -136,6 +142,12 @@ filmography
-
+
+
+ 75
+ true
+
+
name:
@@ -162,6 +174,12 @@ filmography
-
+
+
+ 75
+ true
+
+
Birth date:
@@ -188,6 +206,12 @@ filmography
-
+
+
+ 75
+ true
+
+
Real Name:
@@ -214,6 +238,12 @@ filmography
-
+
+
+ 75
+ true
+
+
Birth place:
@@ -240,6 +270,12 @@ filmography
-
+
+
+ 75
+ true
+
+
Death date:
@@ -275,6 +311,12 @@ filmography
-
+
+
+ 75
+ true
+
+
Short biography:
diff --git a/weboob/applications/qcineoob/ui/subtitle.ui b/weboob/applications/qcineoob/ui/subtitle.ui
index 30022dbc..e93b864b 100644
--- a/weboob/applications/qcineoob/ui/subtitle.ui
+++ b/weboob/applications/qcineoob/ui/subtitle.ui
@@ -47,13 +47,6 @@
QFrame::Raised
-
-
-
-
- Download
-
-
-
-
@@ -77,6 +70,12 @@
-
+
+
+ 75
+ true
+
+
Id:
@@ -112,6 +111,12 @@
-
+
+
+ 75
+ true
+
+
Name:
@@ -147,6 +152,12 @@
-
+
+
+ 75
+ true
+
+
Nb CD:
@@ -179,6 +190,12 @@
-
+
+
+ 75
+ true
+
+
Lang:
@@ -211,6 +228,12 @@
-
+
+
+ 75
+ true
+
+
Description:
@@ -252,6 +275,12 @@
-
+
+
+ 75
+ true
+
+
Url:
@@ -263,6 +292,13 @@
+ -
+
+
+ Download
+
+
+
diff --git a/weboob/applications/qcineoob/ui/torrent.ui b/weboob/applications/qcineoob/ui/torrent.ui
index 0fd173ae..172d4501 100644
--- a/weboob/applications/qcineoob/ui/torrent.ui
+++ b/weboob/applications/qcineoob/ui/torrent.ui
@@ -7,7 +7,7 @@
0
0
629
- 552
+ 571
@@ -18,8 +18,8 @@
- 2000
- 600
+ 10000
+ 10000
@@ -37,7 +37,7 @@
16777215
- 600
+ 10000
@@ -47,13 +47,6 @@
QFrame::Raised
- -
-
-
- Download
-
-
-
-
@@ -77,6 +70,12 @@
-
+
+
+ 75
+ true
+
+
Id:
@@ -112,6 +111,12 @@
-
+
+
+ 75
+ true
+
+
Name:
@@ -144,6 +149,12 @@
-
+
+
+ 75
+ true
+
+
Seed/leech:
@@ -176,6 +187,12 @@
-
+
+
+ 75
+ true
+
+
Size:
@@ -193,10 +210,16 @@
-
+
+
+ 0
+ 150
+
+
16777215
- 200
+ 500
@@ -208,6 +231,12 @@
-
+
+
+ 75
+ true
+
+
Description:
@@ -221,6 +250,12 @@
-
+
+
+ 0
+ 120
+
+
16777215
@@ -236,6 +271,12 @@
-
+
+
+ 75
+ true
+
+
Files:
@@ -270,6 +311,12 @@
-
+
+
+ 75
+ true
+
+
Url:
@@ -304,6 +351,12 @@
-
+
+
+ 75
+ true
+
+
Magnet:
@@ -315,6 +368,13 @@
+ -
+
+
+ Download
+
+
+
diff --git a/weboob/capabilities/cinema.py b/weboob/capabilities/cinema.py
index 38d32794..e5701565 100644
--- a/weboob/capabilities/cinema.py
+++ b/weboob/capabilities/cinema.py
@@ -29,15 +29,16 @@ class Movie(CapBaseObject):
Movie object.
"""
original_title = StringField('Original title of the movie')
- other_titles = Field('Titles in other countries',list)
+ other_titles = Field('Titles in other countries', list)
release_date = DateField('Release date of the movie')
all_release_dates= StringField('Release dates list of the movie')
duration = IntField('Duration of the movie in minutes')
short_description= StringField('Short description of the movie')
+ genres = Field('Genres of the movie', list)
pitch = StringField('Short story description of the movie')
country = StringField('Origin country of the movie')
note = StringField('Notation of the movie')
- roles = Field('Lists of Persons related to the movie indexed by roles',dict)
+ roles = Field('Lists of Persons related to the movie indexed by roles', dict)
thumbnail_url = StringField('Url of movie thumbnail')
def __init__(self, id, original_title):