Skip to content

Commit

Permalink
- Add search video on channel function
Browse files Browse the repository at this point in the history
  • Loading branch information
KOL committed Oct 29, 2015
1 parent 7230158 commit 7f0a45d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,16 @@ def Channel(oid, title):
title=u'%s' % L('Subscriptions'),
thumb=ICONS['subscriptions'],
))
oc.add(InputDirectoryObject(
key=Callback(
Search,
s_type='video',
channelId=oid,
title=u'%s' % L('Search Channel')
),
title=u'%s' % L('Search'), prompt=u'%s' % L('Search Channel'),
thumb=ICONS['search']
))
AddPlaylists(oc, uid=oid)

return oc
Expand Down Expand Up @@ -839,6 +849,7 @@ def Search(query=None, title=L('Search'), s_type='video', offset=0, **kwargs):
title=oc.title2,
s_type=s_type,
offset=res['nextPageToken'],
**kwargs
),
title=u'%s' % L('Next page'),
thumb=ICONS['next']
Expand Down
2 changes: 1 addition & 1 deletion Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<key>CFBundleSignature</key>
<string>hook</string>
<key>CFBundleVersion</key>
<string>3.6</string>
<string>3.7</string>

<key>PlexPluginVersionUrl</key>
<string>http://bit.ly/1FuE3dz</string>
Expand Down
3 changes: 2 additions & 1 deletion Contents/Strings/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"An error has occurred": "An error has occurred",
"Sign out": "Sign out",
"Subscriptions list sorting order": "Subscriptions list sorting order",
"Always play highest quality": "Always play highest quality"
"Always play highest quality": "Always play highest quality",
"Search Channel": "Search Channel"
}
3 changes: 2 additions & 1 deletion Contents/Strings/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"An error has occurred": "Произошла ошибка",
"Sign out": "Выйти",
"Subscriptions list sorting order": "Порядок сортировки Подписок",
"Always play highest quality": "Всегда проигрывать максимальное качество"
"Always play highest quality": "Всегда проигрывать максимальное качество",
"Search Channel": "Поиск на канале"
}

0 comments on commit 7f0a45d

Please sign in to comment.