Page 5 of 17
Re: FlexRSS plugin
Posted: Tue Aug 21, 2007 1:39 pm
by Hellmark
Don't mind debugging at all. If I can help you fix it, less of a chance it will effect others.
Will load without a problem now, but if I goto a filter that is for a dated TV show, it pukes this.
Code: Select all
Traceback (most recent call last):
File "/home/hellmark/.config/deluge/plugins/FlexRSS/plugin.py", line 592, in configure_cb_filter_selected
cal_from.set_date(today[0], today[1], today[2])
File "/home/hellmark/.config/deluge/plugins/FlexRSS/CalendarButton.py", line 41, in set_date
self.__set_date_on_button(year, month, day)
File "/home/hellmark/.config/deluge/plugins/FlexRSS/CalendarButton.py", line 38, in __set_date_on_button
self.set_label(time.strftime("%x", (year, month, day, 0, 0, 0, 0, 0, 0)))
ValueError: day of year out of range
Also, is a screenshot of what the window looks like.
One other quirk I noticed, is a small one, but if you have no history restrictions on a filter, and have one that does selected before clicking on the one without, it will add the restrictions of the previously selected filter.
Re: FlexRSS plugin
Posted: Tue Aug 21, 2007 7:19 pm
by daddy
Thanks, Hellmark.
I uploaded a new version which should fix both bugs (it's really the same bug in two places). The history restriction not updating when moving between feeds thing is a result of the uncaught exception caused by the second bug, so everything should be working now.
If you have any more problems (or feature requests) let me know. Thanks again for the help

Re: FlexRSS plugin
Posted: Tue Aug 21, 2007 10:19 pm
by Hellmark
Everything seems to work now. If I run into something, I'll let ya know.
Re: FlexRSS plugin
Posted: Wed Aug 22, 2007 2:07 am
by gazpachoking
I have been getting this error recently:
Code: Select all
Traceback (most recent call last):
File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 504, in configure_cb_filter_new
self.configure_ui_add_filter(self.config.getFilter(filter['id']), test_pattern)
File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 813, in configure_ui_add_filter
self.configure_cb_test_filter(None)
File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 870, in configure_cb_test_filter
result = self.test_pattern(type_s, subject, pattern)
File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1395, in test_pattern
if pattern[0] != '^':
IndexError: string index out of range
I am using 0.1.6
Re: FlexRSS plugin
Posted: Thu Aug 23, 2007 12:23 am
by daddy
Thanks, fixed

Re: FlexRSS plugin
Posted: Fri Aug 24, 2007 1:13 am
by gazpachoking
Came back from work today with this little gem waiting for me.
Code: Select all
Exception in thread Thread-61:
Traceback (most recent call last):
File "threading.py", line 460, in __bootstrap
self.run()
File "threading.py", line 440, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1575, in parse_feed
self.download_torrent(entry.links[0]['href'], filter.get('path', None), filter['queue_top'], filter['pause'])
File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1476, in download_torrent
fd = self.open_url(location)
File "/usr/share/deluge/plugins/FlexRSS/plugin.py", line 1471, in open_url
return self.make_opener().open(self.make_request(location))
File "urllib2.py", line 374, in open
response = self._open(req, data)
File "urllib2.py", line 392, in _open
'_open', req)
File "urllib2.py", line 353, in _call_chain
result = func(*args)
File "urllib2.py", line 1100, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "urllib2.py", line 1073, in do_open
r = h.getresponse()
File "httplib.py", line 924, in getresponse
response.begin()
File "httplib.py", line 385, in begin
version, status, reason = self._read_status()
File "httplib.py", line 349, in _read_status
raise BadStatusLine(line)
BadStatusLine
Pickling state...
Pickling state...
Raising error: libtorrent reports this is a duplicate torrent
Error: 'libtorrent reports this is a duplicate torrent'
The UI was frozen for deluge, but it was still running.
I also just wanted to reiterate how awesome this plugin is and how much I appreciate your updates.
Re: FlexRSS plugin
Posted: Fri Aug 24, 2007 6:14 pm
by daddy
gazpachoking wrote:Came back from work today with this little gem waiting for me.
Hmm that's an interesting one. My guess is that the URL the feed gives you is a redirect, which FlexRSS doesn't support--yet. Ive uploaded a new version which should make the plugin behave properly, and I'll look at adding support for redirects when I have some free time.
gazpachoking wrote:I also just wanted to reiterate how awesome this plugin is and how much I appreciate your updates.
Thanks. To be honest, you're really doing the hard part right now, finding all these bugs. It's easy to fix a bug here and there, but finding them can really be a pain in the ass.
Re: FlexRSS plugin
Posted: Sat Aug 25, 2007 5:16 am
by gazpachoking
Well, I only use one feed, and thats the tvrss feed, so I don't think it was to do with redirecting. It looks however now that it was the
Raising error: libtorrent reports this is a duplicate torrent
Error: 'libtorrent reports this is a duplicate torrent'
that actually hung deluge.
I had the same symptoms again today (still using the 0.1.7 ver of your plugin) but without the other error and traceback this time. Can't be sure FlexRSS plugin is to blame but seems like that would be the only thing trying to add a new torrent.
Re: FlexRSS plugin
Posted: Tue Aug 28, 2007 4:07 am
by daddy
gazpachoking,
Sorry it took so long to get back to you--I was out of town over the weekend. Anyways...
Can you try manually adding a torrent to deluge that you're already downloading? If that crashes deluge, it's a deluge bug. If not, I'll upload some debugging code.
Also, why is it adding a torrent that already exists? Is there a bug with the filter code, or are you manually starting a download that FlexRSS has a filter for? The code you're having problems with shouldn't be called unless the filter matches, any history restriction passes, and the episode isn't already in FlexRSS' history.
Again, sorry for the delay

Re: FlexRSS plugin
Posted: Wed Sep 05, 2007 7:30 am
by Hellmark
right now, having an issue, where a RSS feed points to a torrent that was deleted from the tracker. Since the tracker no longer has it, it throws up a message stating it doesn't exist. When FlexRSS gets it, it wigs out and crashes Deluge.
Code: Select all
Warning: torrent content-type not application/x-bittorrent
terminate called after throwing an instance of 'libtorrent::invalid_encoding'
what(): invalid bencoding
Aborted