Posts: 321
Joined: Jan 2009
Reputation:
0
Great. Thoughts on how to fix the date sorting piece? I can sort by title in XBMC, ascending, descending, but when I choose sort by date, nothing happens.
Posts: 87
Joined: Jun 2008
Reputation:
0
2012-08-23, 21:12
(This post was last modified: 2012-08-23, 21:12 by dinki.)
Does XBMC even recognize 'aired date' as a date? That might be why it's not sorting.
Noticed another special character that will need to be handled: '"' Also, does anyone know how to keep the view as 'Media info' instead of the default 'list' view?
I may be wrong, but can't we get more information from SageX instead of the Nielm's web server? I think we might be able to pull more meta data that way and perhaps even get the fan art to use as the icon.png.
Posts: 87
Joined: Jun 2008
Reputation:
0
What has been done here works, but I would love to see a much better integration with XBMC. It would be great if an add on could monitor the Sage recording directory and pull those files into the XBMC TV Shows listings with all meta data. I know that programs without season/episode information would be a problem but I think you guys had a workaround in the Plex scanner?
Posts: 321
Joined: Jan 2009
Reputation:
0
We did (e.g. we used "year" for the season # for example when one didn't exist). What you're talking about would be a SageTV-specific scraper. I have no clue where to start but I learned the Plex API/framework pretty easily. Is there a "simple" scraper that we could look at that could be used as a basis. Once the basic "plumbing" is in place, the Plex agent logic should be very transferrable (at least in concept).
Posts: 87
Joined: Jun 2008
Reputation:
0
2012-08-23, 22:13
(This post was last modified: 2012-08-23, 22:13 by dinki.)
Can't the .nfo files be created without creating a scraper? Couldn't they be created on the Sage side and then somehow trigger XBMC to do a scan?
Posts: 3,912
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,912
You need each series in it's own folder. Then each folder needs a tvshow.nfo file and each episode needs a filename.nfo file. Sage doesn't put series in thier own folders.
Posts: 3,912
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,912
2012-08-23, 22:16
(This post was last modified: 2012-08-23, 22:19 by kricker.)
I've made all the changes to the code so far and I'm going to push them up to github.
LehighBri,
Please note I moved the strURL variable declaration out of the def CATEGORIES(): section. This allows us to use it anywhere else in the code where we need the URL (like on line 130 for the delete command) and saves us from typing that long string out each time.
Posts: 87
Joined: Jun 2008
Reputation:
0
Right. I think that can be done using symbolic/hard links created in a separate directory so that you don't have to rename and move the actual sage recordings.
Posts: 3,912
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,912
2012-08-23, 22:44
(This post was last modified: 2012-08-23, 22:45 by kricker.)
.strm files are really just playlist files. They can point to anything and XBMC's code was changed to allow them to be imported as files and not treated as playlists. You can also have multiple links in the .strm file I believe. This allows you to play back multipart recordings. The bad news is each part plays back independently as separate files. So once you enter the second file, skipping back does not go back to the other file. Plus there is a small hesitation as the files are changed during playback. Slugger's solution was almost complete for XBMC minus the .nfo files needed to get things into the library.
Posts: 87
Joined: Jun 2008
Reputation:
0
Do you have a lot of multipart recordings? I don't have any.
Livetv is similar in the aspect that you can't skip back to the last show once a new program starts. A pause would be expected as sage doesn't record to some always growing buffer file thing, but this is getting a bit off topic.
What's the best path to take? Should .strm files with .nfo files created from SageX be used? They would be placed in a directory that XBMC would scan and import as tv recordings. The .strm files should keep us from having to create a tv show->tv episodes directory structure, right?
I did do a test a few days ago with a .nfo file that only contain a filename and it did put it in with my tv recordings so even recordings without season/episodes will still show up with the other tv recordings. I don't know if it will group similar named files though.