Imdb url only in XBMC meta data
This commit is contained in:
1 parent
9f19902221
commit
3464435a5c
2 files changed
+13
No files matched your search
@@ -31,6 +31,14 @@ config = [{
|
|||||||
'advanced': True,
|
'advanced': True,
|
||||||
'description': '<strong>%s</strong> is the rootname of the movie. For example "/path/to/movie cd1.mkv" will be "/path/to/movie"'
|
'description': '<strong>%s</strong> is the rootname of the movie. For example "/path/to/movie cd1.mkv" will be "/path/to/movie"'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': 'meta_url_only',
|
||||||
|
'label': 'Only IMDB URL',
|
||||||
|
'default': False,
|
||||||
|
'advanced': True,
|
||||||
|
'description': 'Create a nfo with only the IMDB url inside',
|
||||||
|
'type': 'bool',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'name': 'meta_fanart',
|
'name': 'meta_fanart',
|
||||||
'label': 'Fanart',
|
'label': 'Fanart',
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ class XBMC(MetaDataBase):
|
|||||||
return os.path.join(root, basename.replace('%s', name))
|
return os.path.join(root, basename.replace('%s', name))
|
||||||
|
|
||||||
def getNfo(self, movie_info = {}, data = {}):
|
def getNfo(self, movie_info = {}, data = {}):
|
||||||
|
|
||||||
|
# return imdb url only
|
||||||
|
if self.conf('meta_url_only'):
|
||||||
|
return 'http://www.imdb.com/title/%s/' % toUnicode(data['library']['identifier'])
|
||||||
|
|
||||||
nfoxml = Element('movie')
|
nfoxml = Element('movie')
|
||||||
|
|
||||||
# Title
|
# Title
|
||||||
|
|||||||
Reference in new issue
Block a user