nRage - C# / .NET metadata gatherer

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ferretallica Offline
Junior Member
Posts: 5
Joined: Jul 2012
Reputation: 0
Post: #1
I've been using XBMC since 8.1(?). It's great, but I'm something of a perfectionist who likes very fine grained control over everything.

The two big frustrations I've had with XBMC are the interface and the library management. The former I have finally gotten around to tweaking to my liking after learning how to write an XBMC skin, the latter I am only just now getting around to.

I don't expect anyone to want to adopt my approach to library management, however I figured the metadata scraper component might be of interest to some of you and have decided to make it open-source accordingly. It's really nothing complex but hopefully it gives you a head start if you're working on something similar.

Link: https://github.com/ferretallica/nRage

At the moment it supports the TVRage API. I'm currently working on supporting TheTVDB API and adding a common data model. One thing which I won't be adding is thexem.de support. Any OTHER feedback and suggestions are welcome Smile
find quote
da-anda Offline
Team-XBMC Member
Posts: 1,385
Joined: Jun 2009
Reputation: 27
Location: germany
Post: #2
You know that there is a new scraper engine for XBMC in the works? It's called Heimdall and is one of this years GSOC projects.
It's in active development atm, even if the forum thread might not be kept up2date: http://forum.xbmc.org/showthread.php?tid=134012
(This post was last modified: 2012-12-22 13:16 by da-anda.)
find quote
ferretallica Offline
Junior Member
Posts: 5
Joined: Jul 2012
Reputation: 0
Post: #3
(2012-12-22 13:15)da-anda Wrote:  You know that there is a new scraper engine for XBMC in the works? It's called Heimdall and is one of this years GSOC projects.
It's in active development atm, even if the forum thread might not be kept up2date: http://forum.xbmc.org/showthread.php?tid=134012

No I wasn't aware, thanks for the link.

Still, I'm not just writing a scraper, I'm more looking at a replacement for tools like ember, but one which hooks directly into the XBMC database.
Not the recommended approach sure, and a bit of a niche use case, but that's why I've only shared the scraper part. The rest is almost certainly only of interest to me.
The scraper part itself is not trying to be a generic match for every media source and type under the sun, just TV shows.
Movies I'm not concerned with - they're easy enough to sort manually and XBMC's internal scraping is good enough.
Music will be a separate project to come and not something I plan to integrate with XBMC.
(This post was last modified: 2012-12-22 23:25 by ferretallica.)
find quote
ferretallica Offline
Junior Member
Posts: 5
Joined: Jul 2012
Reputation: 0
Post: #4
TheTVDB support is complete as of v0.2.5 which is now on GitHub.
find quote
m.savazzi Offline
Moderator
Posts: 469
Joined: Mar 2008
Reputation: 10
Post: #5
Great, I will use it for EmberMediaManager

come on the thread, is evolving Smile

If you think I'm useful please use the + button to raise my reputation
find quote
m.savazzi Offline
Moderator
Posts: 469
Joined: Mar 2008
Reputation: 10
Post: #6
ferretallica,
I downloaded your code and tried to compile it but I got:
Code:
Error    1    The type or namespace name 'TVRage' does not exist in the namespace 'nRage.Contract' (are you missing an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    11    22    nRage.Example
Error    2    The type or namespace name 'Idisposable' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    19    37    nRage.Example
Error    3    The type or namespace name 'TvrageClient' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    42    30    nRage.Example
Error    4    'nRage.Example.frmMain.LoadingBar': type used in a using statement must be implicitly convertible to 'System.IDisposable'    K:\nRage\nRage.Example\frmMain.cs    40    13    nRage.Example
Error    5    The type or namespace name 'SearchResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    52    37    nRage.Example
Warning    6    Unreachable code detected    K:\nRage\nRage.Example\frmMain.cs    55    21    nRage.Example
Error    7    The type or namespace name 'FullSearchResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    66    37    nRage.Example
Warning    8    Unreachable code detected    K:\nRage\nRage.Example\frmMain.cs    69    21    nRage.Example
Error    9    The type or namespace name 'EpisodeListResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    82    37    nRage.Example
Warning    10    Unreachable code detected    K:\nRage\nRage.Example\frmMain.cs    88    21    nRage.Example
Error    11    The type or namespace name 'ShowInfoResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    101    37    nRage.Example
Error    12    The type or namespace name 'FullShowInfoResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    106    37    nRage.Example
Error    13    The type or namespace name 'LastUpdatesResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    111    37    nRage.Example
Error    14    The type or namespace name 'ShowListResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    116    37    nRage.Example

can you please help me understand?



Second request: I need the library compiled for .NET 3.5, can you help? is it possible?

If you think I'm useful please use the + button to raise my reputation
(This post was last modified: 2013-03-15 11:56 by m.savazzi.)
find quote
therealwakka Offline
Junior Member
Posts: 15
Joined: Oct 2007
Reputation: 0
Post: #7
I have the same problem!
I think the example is not up to date.

For example there are missing "usings" and the TvRageClient class has a contructor which needs the IRetriever Interface parameter and not a empty contructor.

Would nice if we get an up to date example code how to use this library.

Regards
therealwakka

(2013-03-14 17:06)m.savazzi Wrote:  ferretallica,
I downloaded your code and tried to compile it but I got:
Code:
Error    1    The type or namespace name 'TVRage' does not exist in the namespace 'nRage.Contract' (are you missing an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    11    22    nRage.Example
Error    2    The type or namespace name 'Idisposable' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    19    37    nRage.Example
Error    3    The type or namespace name 'TvrageClient' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    42    30    nRage.Example
Error    4    'nRage.Example.frmMain.LoadingBar': type used in a using statement must be implicitly convertible to 'System.IDisposable'    K:\nRage\nRage.Example\frmMain.cs    40    13    nRage.Example
Error    5    The type or namespace name 'SearchResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    52    37    nRage.Example
Warning    6    Unreachable code detected    K:\nRage\nRage.Example\frmMain.cs    55    21    nRage.Example
Error    7    The type or namespace name 'FullSearchResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    66    37    nRage.Example
Warning    8    Unreachable code detected    K:\nRage\nRage.Example\frmMain.cs    69    21    nRage.Example
Error    9    The type or namespace name 'EpisodeListResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    82    37    nRage.Example
Warning    10    Unreachable code detected    K:\nRage\nRage.Example\frmMain.cs    88    21    nRage.Example
Error    11    The type or namespace name 'ShowInfoResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    101    37    nRage.Example
Error    12    The type or namespace name 'FullShowInfoResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    106    37    nRage.Example
Error    13    The type or namespace name 'LastUpdatesResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    111    37    nRage.Example
Error    14    The type or namespace name 'ShowListResponse' could not be found (are you missing a using directive or an assembly reference?)    K:\nRage\nRage.Example\frmMain.cs    116    37    nRage.Example

can you please help me understand?



Second request: I need the library compiled for .NET 3.5, can you help? is it possible?
find quote