Release - TVRage-Eps (Script) TV Show Episode Notifier and Browser Addon

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
XmemphistoX Offline
Member
Posts: 59
Joined: Aug 2010
Reputation: 0
Post: #61
ruuk Wrote:I'm thinking of creating a video plugin that simply launches the script. Then you could launch it from 'Video Add-ons' (Note: If anyone cares about this let me know)

Not sure that would do what you want. In Confluence, TV SHOWS doesn't have a menu for addons and I wouldn't think that other skins do (unless it's the same content as VIDEO) as there isn't a separate plugin type for tv shows and video.
It's in programs because it's not a plugin and doesn't operate like a plugin.

Sorry, I didn't mention that I am using Aeon65. TV shows does have a drop down menu for add-ons. Thanks for adding it if you do and Thanks for the plugin!
find quote
Dobyken Offline
Fan
Posts: 559
Joined: Apr 2010
Reputation: 5
Location: Florida Gulf Coast
Post: #62
ruuk Wrote:The list that it shows is what TVRage returned as matching what is entered in XBMC. When you select from that list the script gets info for the show based on the associated show id. Adding the XBMC name to this list doesn't make sense in this context, if you see what I mean. When this happens either TVRage doesn't have info on this show, or you may have to search manually and edit your search terms.

Thanks for the log. That showed me the bug and I'm posting a link here for the update in a second.

I agree with you...just trying to eliminate confusion for new users because many apps if you close a window it aborts the script.

The file save function now works on my system...thanks. Didn't you say you were going to create a setup variable for whether to import "Cancelled" shows? Of my 100 or so series about 75 fall into the cancelled category and deleting 75 records one at a time is painful.

Mythbuntu doesn't need viruses - we have Sudo
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,583
Joined: Aug 2005
Reputation: 185
Location: Bremerton, WA USA
Post: #63
Dobyken Wrote:Didn't you say you were going to create a setup variable for whether to import "Cancelled" shows? Of my 100 or so series about 75 fall into the cancelled category and deleting 75 records one at a time is painful.

It's in the addon settings under Library Access

[Image: sig.jpg]
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #64
ruuk Wrote:
Code:
import jsonrpc

api = jsonrpc.jsonrpcAPI()
#or
api = jsonrpc.jsonrpcAPI(mode='http',url='http://192.168.1.5:8080/jsonrpc',user='user',password='password')
seasonsarray = api.VideoLibrary.GetSeasons(tvshowid="idhere")

As you can see it mirrors the format of the jsonrpc. It also should be future-proof as it doesn't have to 'physically' implement the methods.

Anyway, if you if anyone else is interested in using it let me know and I'll make it available.

strange that you need username and password using builtin

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #65
ruuk Wrote:I'm thinking of creating a video plugin that simply launches the script. Then you could launch it from 'Video Add-ons' (Note: If anyone cares about this let me know)

Not sure that would do what you want. In Confluence, TV SHOWS doesn't have a menu for addons and I wouldn't think that other skins do (unless it's the same content as VIDEO) as there isn't a separate plugin type for tv shows and video.
It's in programs because it's not a plugin and doesn't operate like a plugin.

you just need to add that to you addon.xml:

Code:
<provides>video</provides>

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
Dobyken Offline
Fan
Posts: 559
Joined: Apr 2010
Reputation: 5
Location: Florida Gulf Coast
Post: #66
ruuk Wrote:It's in the addon settings under Library Access

Thanks..I deleted all the old data, changed the canceled setting and ran the import again. Two shows marked as canceled appeared in the list. Both were ones that I was presented with a selection list to verify the series name vs. TVRage. The other canceled shows did not get imported.

Mythbuntu doesn't need viruses - we have Sudo
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,583
Joined: Aug 2005
Reputation: 185
Location: Bremerton, WA USA
Post: #67
ppic Wrote:strange that you need username and password using builtin

You don't. I was just illustrating that my api can do both builtin and HTTP with no difference in usage after instantiating the class.

This is an example via builtin:
api = jsonrpc.jsonrpcAPI()

This is an example vie HTTP:
api = jsonrpc.jsonrpcAPI(mode='http',url='http://192.168.1.5:8080/jsonrpc',user='user',password='password')

[Image: sig.jpg]
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,583
Joined: Aug 2005
Reputation: 185
Location: Bremerton, WA USA
Post: #68
Dobyken Wrote:Thanks..I deleted all the old data, changed the canceled setting and ran the import again. Two shows marked as canceled appeared in the list. Both were ones that I was presented with a selection list to verify the series name vs. TVRage. The other canceled shows did not get imported.

Thanks. Fixed. I remember thinking it made sense for some reason at the time. But it doesn't. Smile
I'm adding a 'Skip' option to the list as well.

[Image: sig.jpg]
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #69
ruuk Wrote:You don't. I was just illustrating that my api can do both builtin and HTTP with no difference in usage after instantiating the class.

This is an example via builtin:
api = jsonrpc.jsonrpcAPI()

This is an example vie HTTP:
api = jsonrpc.jsonrpcAPI(mode='http',url='http://192.168.1.5:8080/jsonrpc',user='user',password='password')

ok, but why it still requiering user and password on my htpc Sad

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,583
Joined: Aug 2005
Reputation: 185
Location: Bremerton, WA USA
Post: #70
ppic Wrote:ok, but why it still requiering user and password on my htpc Sad

On my TVRage-Eps script? What version are you using? Shouldn't need it in 0.9.6
Also you can make sure that 'Use HTTP' isn't checked in the settings. It shouldn't be by default.

[Image: sig.jpg]
(This post was last modified: 2010-10-09 03:02 by ruuk.)
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,583
Joined: Aug 2005
Reputation: 185
Location: Bremerton, WA USA
Post: #71
ppic Wrote:you just need to add that to you addon.xml:

Code:
<provides>video</provides>

Thanks I remember now seeing it in your addon.xml but I had forgotten about that. It's not in the docs for script addons. I added for video and executable so on the next version it will show up in both.

[Image: sig.jpg]
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #72
ok, i'm still on repo version Wink

a button to access setting will be welcome Wink

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #73
could be good to add a "none" selection on list when it ask to select different choice for a show when scanning the librairy, if the show isn't in choices.

on scan librairy, the dialog close, and nothing added to the list, here's the log:

Code:
03:58:23 T:2999487344 M:1624158208   DEBUG: GetTvShowsByWhere query: SELECT tvshow.*,path.strPath AS strPath,counts.totalcount AS totalCount,counts.watchedcount AS watchedCount,counts.totalcount=counts.watchedcount AS watched FROM tvshow JOIN tvshowlinkpath ON tvshow.idShow=tvshowlinkpath.idShow JOIN path ON path.idpath=tvshowlinkpath.idPath LEFT OUTER join (    SELECT tvshow.idShow AS idShow,count(1) AS totalcount,count(files.playCount) AS watchedcount FROM tvshow     JOIN tvshowlinkepisode ON tvshow.idShow=tvshowlinkepisode.idShow     JOIN episode ON episode.idEpisode=tvshowlinkepisode.idEpisode     JOIN files ON files.idFile=episode.idFile     GROUP BY tvshow.idShow) counts ON tvshow.idShow=counts.idShow
03:58:23 T:2999487344 M:1620983808   DEBUG: Time for actual SQL query = 91
03:58:23 T:2999487344 M:1620983808   DEBUG: Time to retrieve tvshows from dataset = 68
03:58:24 T:2776677232 M:1624543232  NOTICE: SHOW: Air Gear - MATCHES: Air Gear
03:58:24 T:2776677232 M:1624543232  NOTICE: SHOW: Alias - MATCHES: Alias
03:58:24 T:2776677232 M:1624543232    INFO: Loading skin file: DialogSelect.xml
03:58:24 T:2776677232 M:1624543232   DEBUG: Load DialogSelect.xml: 23.75ms
03:58:24 T:3079116672 M:1624543232   DEBUG: ------ Window Init (DialogSelect.xml) ------
03:58:24 T:3079116672 M:1624543232   DEBUG: Alloc resources: 0.18ms (0.01 ms skin load)
03:58:26 T:3079116672 M:1622265856   DEBUG: SDLKeyboard: scancode: 111, sym: 273, unicode: 0, modifier: 0
03:58:26 T:3079116672 M:1622265856   DEBUG: OnKey: 61478 pressed, action is Up
03:58:27 T:3079116672 M:1622274048   DEBUG: SDLKeyboard: scancode: 36, sym: 13, unicode: 13, modifier: 0
03:58:27 T:3079116672 M:1622274048   DEBUG: OnKey: 61453 pressed, action is Select
03:58:27 T:3079116672 M:1622274048   DEBUG: ------ Window Deinit (DialogSelect.xml) ------
03:58:29 T:2776677232 M:1624338432  NOTICE: SHOW: Angel Beats! - MATCHES: Angel Beats!
03:58:29 T:2776677232 M:1624338432  NOTICE: SHOW: Bakuretsu Tenshi - MATCHES: Bakuretsu Tenshi
03:58:29 T:2776677232 M:1624338432  NOTICE: SHOW: Bamboo Blade - MATCHES: Bamboo Blade
03:58:30 T:2776677232 M:1624338432  NOTICE: SHOW: Battlestar Galactica - MATCHES: Battlestar Galactica
03:58:30 T:2776677232 M:1624338432  NOTICE: SHOW: Black Lagoon - MATCHES: Black Lagoon
03:58:30 T:3079116672 M:1624338432   DEBUG: ------ Window Deinit (DialogProgress.xml) ------
03:58:30 T:2776677232 M:1624338432   ERROR: Exception in python script's onAction
03:58:30 T:2776677232 M:1624338432  NOTICE: Traceback (most recent call last):
03:58:30 T:2776677232 M:1624338432  NOTICE:   File "/home/xbmc/.xbmc/addons/script.tvrage.com/default.py", line 364, in onAction
03:58:30 T:2776677232 M:1624973312  NOTICE: self.doMenu()
03:58:30 T:2776677232 M:1624973312  NOTICE:   File "/home/xbmc/.xbmc/addons/script.tvrage.com/default.py", line 380, in doMenu
03:58:30 T:2776677232 M:1624973312  NOTICE: elif idx == 1: self.addFromLibrary()
03:58:30 T:2776677232 M:1624973312  NOTICE:   File "/home/xbmc/.xbmc/addons/script.tvrage.com/default.py", line 435, in addFromLibrary
03:58:30 T:2776677232 M:1624977408  NOTICE: result = API.search(title)
03:58:30 T:2776677232 M:1624977408  NOTICE:   File "/home/xbmc/.xbmc/addons/script.tvrage.com/default.py", line 189, in search
03:58:30 T:2776677232 M:1624977408  NOTICE: url = self._search_url + urllib.quote_plus(show)
03:58:30 T:2776677232 M:1624977408  NOTICE:   File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 1123, in quote_plus
03:58:31 T:2776677232 M:1624977408  NOTICE: s = quote(s, safe + ' ')
03:58:31 T:2776677232 M:1624977408  NOTICE:   File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 1117, in quote
03:58:31 T:2776677232 M:1624977408  NOTICE: res = map(safe_map.__getitem__, s)
03:58:31 T:2776677232 M:1624977408  NOTICE: KeyError
03:58:31 T:2776677232 M:1624977408  NOTICE: :
03:58:31 T:2776677232 M:1624977408  NOTICE: u'\xe0'
03:58:45 T:3079116672 M:1625124864   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-i486-linux.so)
03:58:45 T:3079116672 M:1625124864   DEBUG: Unloading: ImageLib-i486-linux.so

should be a problem with accentuated characters.

TVshow which encounter problem i think (the next in list): "blague à part", french tvshow.

you should find a way to test with this Wink

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
(This post was last modified: 2010-10-09 04:05 by ppic.)
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,583
Joined: Aug 2005
Reputation: 185
Location: Bremerton, WA USA
Rainbow  Version 0.9.7
Post: #74
Get the zip from the link. If no bugs or complaints I'll post to the repository.

http://code.google.com/p/tvrage-eps/downloads/list

Fixed a bug with fetching images on some shows causing an error
Fixed: Was adding canceled shows if chosen from the list on 'Add all from library'
Script will now show up in 'Video Addons' and 'Program Addons'
Added < Skip > option when prompting for choice
Fixed a search bug causing errors on special characters
Made the settings option 'Prompt if match not found' actually do something Smile
Added cancel option on show options menu
Revamped interface
+Added 'Add All From Library Button'
-Removed 'Add All From Library' from show options lists
-Removed 'Add/Search' from show options lists
+Added 'Settings' button
+Larger show images

[Image: sig.jpg]
find quote
branlr Offline
Fan
Posts: 356
Joined: Dec 2009
Reputation: 3
Location: I live in Chicago.
Post: #75
Thanks Ruuk and PPIC for your awesome scripts! I see what you mean now about not integrating them. Makes perfect sense!

Thanks again.
find quote
Post Reply