FlexRSS plugin

Suggest, post, or discuss plugins for Deluge
Locked
daddy
Seeder
Seeder
Posts: 100
Joined: Sun Jul 22, 2007 12:14 am

Re: FlexRSS plugin

Post by daddy »

MoJo wrote:Hey I already like the current setup, but if your gonna rewrite it and make it easier to make it extensible ... then by all means go for it. Just along the way of coding ... leave tidbits of comments to make it way easier to add new functionality. About using SQLite, would that mean also shipping the plugin with the SQLite binary? If so maybe going an XML route would be easier ... it would be easier to maintain and it would mean a Database isn't running in the background however lite it is.
No, it means linking against sqlite, just like XML would mean linking against libxml2. And sqlite doesn't run in the background like most RDBMS packages do... it is used more like, e.g., libxml2.

I just realised you may be asking about the Windows version. I don't know what the deal is with sqlite + python on Windows is. I also don't know what the deal with libxml2 is.
Daedalus

Re: FlexRSS plugin

Post by Daedalus »

im using tvRSS's legacy feeds and when running more then 1 or 2 filters i get this:

Code: Select all

{'queue_top': False, 'pause': False, 'name': 'Heroes.', 'enabled': True, 'patterns': [('heroes\\.s%se%e', 'Title')], 'path': None, 'feeds': [0], 'history': {}, 'type': 1, 'id': 84, 'delete': False}
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/deluge/plugins.py", line 121, in update_active_plugins
    plugin.update()
  File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1690, in update
    self.parse_feed(self.feeds[id]['cfg']['id'])
  File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1638, in parse_feed
    h_from = filter['history'][filter['type']].get('from', None)
KeyError: 1
{'queue_top': False, 'pause': False, 'name': 'Scrubs.', 'enabled': True, 'patterns': [('scrubs\\.s%se%e', 'Title')], 'path': None, 'feeds': [0], 'history': {}, 'type': 1, 'id': 85, 'delete': False}
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/deluge/interface.py", line 1070, in update
    self.plugins.update_active_plugins()
  File "/usr/lib/python2.5/site-packages/deluge/plugins.py", line 121, in update_active_plugins
    plugin.update()
  File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1690, in update
    self.parse_feed(self.feeds[id]['cfg']['id'])
  File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1638, in parse_feed
    h_from = filter['history'][filter['type']].get('from', None)
KeyError: 1


Daedalus

Re: FlexRSS plugin

Post by Daedalus »

double post time >_>

i moved over to a single unique feed and many filters (rather then many feeds and many filters) and it seems to be working now but now in the console i get

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/deluge/interface.py", line 1070, in update
    self.plugins.update_active_plugins()
  File "/usr/lib/python2.5/site-packages/deluge/plugins.py", line 121, in update_active_plugins
    plugin.update()
  File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1690, in update
    self.parse_feed(self.feeds[id]['cfg']['id'])
  File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1563, in parse_feed
    print 'Unable to update feed: ' + feed['url']
TypeError: 'NoneType' object is unsubscriptable

DeathWolf
New User
New User
Posts: 5
Joined: Mon Dec 24, 2007 1:30 am

Re: FlexRSS plugin

Post by DeathWolf »

Is there any chance negative filters could be added?
They really help filtering out bad/non-wanted content.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: FlexRSS plugin

Post by johnnyg »

DeathWolf wrote:Is there any chance negative filters could be added?
They really help filtering out bad/non-wanted content.
check out the patterns section of the documentation.

but basically you can create regular expressions to filter out unwanted content.

like

Code: Select all

(?!.*720p|.*AC3)
filters out 720p & AC3 quality files
jjb123
Member
Member
Posts: 14
Joined: Thu Dec 27, 2007 2:18 pm

Re: FlexRSS plugin

Post by jjb123 »

I am having some problems. I subscribed to http://tvrss.net/feed/eztv/ with FlexRSS and created a filter like The.Office.S%sE%e* . I also created similar filters for the colbert report and robot chicken. Will it download the most recent one or will it wait until a new one comes out? Is there a way to force a RSS update to make sure?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: FlexRSS plugin

Post by johnnyg »

jjb123 wrote:I am having some problems. I subscribed to http://tvrss.net/feed/eztv/ with FlexRSS and created a filter like The.Office.S%sE%e* . I also created similar filters for the colbert report and robot chicken. Will it download the most recent one or will it wait until a new one comes out? Is there a way to force a RSS update to make sure?
it will download the next available episode but it won't download repeats if that's what you mean. you can also restrict what episode you download with the history restriction. if you right-click on the feed and select "refresh feed", that will force it to check the feed.

you can test your filter by using the test match. I'm pretty sure you don't need to put the S & E in the office & robot chicken filter and the colbert report is a dated show so it's a bit different.
jjb123
Member
Member
Posts: 14
Joined: Thu Dec 27, 2007 2:18 pm

Re: FlexRSS plugin

Post by jjb123 »

Ok, I copied and pasted the latest office title into the test and it was a match. Should it have downloaded the most recent one, like utorrent, or will it wait until a new one comes out?
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: FlexRSS plugin

Post by gazpachoking »

jjb123 wrote:Ok, I copied and pasted the latest office title into the test and it was a match. Should it have downloaded the most recent one, like utorrent, or will it wait until a new one comes out?
There are only a certain number of shows in the RSS feed. So if by the time you added your filter there was not an episode of the office in the feed (I suspect there was not), it should not have downloaded anything. You can check to see what torrents are in the feed by clicking the arrow next to the feed name in FlexRSS. If you want FlexRSS to download older episodes of The Office you can add The Office feed to your list of feeds. Make sure you set the history restriction or it will try to download all of the episodes (some of which are probably too old and do not have any seeders anymore.)
jjb123
Member
Member
Posts: 14
Joined: Thu Dec 27, 2007 2:18 pm

Re: FlexRSS plugin

Post by jjb123 »

Oh ok, I think you right. It has been a while since the office has been released. Thank you for your help, nice plugin :)
Locked