Re: [Freevo-users] Freevo RSS Client
I have cleaned up the feedParser and have tested it against your URL and it works. Let me know if you or anyone run's into feeds that don't work.On 2/25/06, Gorka Olaizola [EMAIL PROTECTED] wrote: On Sat, Feb 25, 2006 at 03:35:08AM +, Justin Wetherell wrote:I found an AUDIO_SUFFIX in my local_conf and it also exists infreevo_confI don't have it but I found references to it in the freevo code. I have added it to my configI found more bugs in the creation of the fxdThe feed is:http://feeds.feedburner.com/MetalInjectionGuerillaRadio The traceback:fxd file /mnt/datos/media/rss/audio/MSRcast_episode_14.fxd corruptTraceback (most recent call last):File /usr/lib/python2.3/site-packages/freevo/fxditem.py, line 129, in parseparser = util.fxdparser.FXD(fxd_file)File /usr/lib/python2.3/site-packages/freevo/util/fxdparser.py, line181, in __init__self.tree = FXDtree(filename)File /usr/lib/python2.3/site-packages/freevo/util/fxdparser.py, line 92, in __init__self.tree = self.parse(f)File /usr/lib/python2.3/site-packages/_xmlplus/utils/qp_xml.py, line134, in parsep.Parse('', 1)ExpatError: unclosed CDATA section: line 11, column 0 And the fxd:freevo movie title=MSRcast Episode 14: Raise Your Swordsvideo fileid=f1/mnt/datos/media/rss/audioMSRcast_episode_14.mp3/file /videoinfo plot![CDATA[Prepare to raise Thy swords. /plot/info /movie/freevoIt seems that the CDATA is not closed properly. The feed has more text thanonly a line.In this address there is a Python rss parser that uses pyXML. It seem that it doesn't support rss2.0 but maybe it is useful for the simple parsing you aredoinghttp://www.mnot.net/python/RSS.py-BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux)iD8DBQFEAEaIAJWwPWWa2yoRAq4yAJwNY8OvopLOZBs7Oa6dzKVk7QhxiwCfZ2vfzRx+h0GeH7twGOVGTnxRqdU==OTq5-END PGP SIGNATURE-
Re: [Freevo-users] Freevo RSS Client
I have done some code fixing and exception handling; if you are using this I would suggest downloading the new version. On 2/23/06, Justin Wetherell [EMAIL PROTECTED] wrote: The problem with the last feed is; it doesn't comply with the rss guideline. Each rss should have a Published Date field, so you can see how old it is. There really isn;t any dates in that feed to parse which'll make it quite hard to figure out. On 2/23/06, Alberto Hernando [EMAIL PROTECTED] wrote: El Jueves, 23 de Febrero de 2006 10:36, Justin Wetherell escribió: Don't put the actual Directory into the helpers directory; just put the three files.Ok.Withhttp://twit.libsyn.com/rss,7I get a big video in the right directory. http://www.comunicandopodcast.com/podcast.php,10This one works too. But with others, like:http://www.cadenaser.com/rssaudio/entrevistas.html,2 the plugin fails witht his:[EMAIL PROTECTED]:/mnt/musica/PodAudio$ Traceback (most recent call last):File /usr/lib/python2.3/site-packages/freevo/helpers/rssServer.py, line 6,in ?t = threading.Thread (rssPeriodic.checkForUpdates())File /usr/lib/python2.3/site-packages/freevo/helpers/rssPeriodic.py, line71, in checkForUpdatesitemDate = convertDate(item.date)File /usr/lib/python2.3/site-packages/freevo/helpers/rssPeriodic.py, line 10, in convertDateitemDate = re.search(\d+\s+\S+\s+\d+,string).group()AttributeError: 'NoneType' object has no attribute 'group'As you can see, I'm using python-2.3 with freevo-1.5.4. Probably this is happening because it needs more debugging, so I thought it could help.Anyway, thanks for your work.Alberto---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Freevo RSS Client
El Viernes, 24 de Febrero de 2006 18:20, Justin Wetherell escribió: I have done some code fixing and exception handling; if you are using this I would suggest downloading the new version. Hi. This is working better. Now some new podcasts work, and the bad ones don't make the server crash. Two things: the number after the address, is like the max age of the files to download? Seconds, is it possible to comment out some addresses in rss.feeds without having to erase the lines you don't want? Great work. Thanks Alberto --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Freevo RSS Client
First: Say a podcast was published on 2/17/06, today is 2/24/06; The difference is 7 days. So if the number after the url is greater than or equal to 7; it will download. It also now keeps track to see if the has been downloaded before and it won't re-download if that file is deleted. Second: Now you can! Check the url Check here for constant updates: http://freevohelp.com/rss On 2/24/06, Alberto Hernando [EMAIL PROTECTED] wrote: El Viernes, 24 de Febrero de 2006 18:20, Justin Wetherell escribió: I have done some code fixing and exception handling; if you are using this I would suggest downloading the new version.Hi.This is working better. Now some new podcasts work, and the bad ones don'tmake the server crash. Two things: the number after the address, is like the max age of the files to download? Seconds, is it possible to comment out someaddresses in rss.feeds without having to erase the lines you don't want?Great work. Thanks Alberto--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Freevo-users mailing listFreevo-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Freevo RSS Client
On Fri, Feb 24, 2006 at 12:20:28PM -0500, Justin Wetherell wrote: I have done some code fixing and exception handling; if you are using this I would suggest downloading the new version. I have a suggestion. In the file rssPeriodic.py there is this code. def createFxd(item,filename): if mp3 in item.url: fullFilename=config.RSS_AUDIO+filename ofile = re.sub('mp3','fxd',filename) else: fullFilename=config.RSS_VIDEO+filename if mov in item.url: ofile = re.sub('mov','fxd',filename) elif avi in item.url: ofile = re.sub('avi','fxd',filename) elif mp4 in item.url: ofile = re.sub('mp4','fxd',filename) elif m4v in item.url: ofile = re.sub('m4v','fxd',filename) else: ofile = re.sub('wmv','fxd',filename) I think it would be better if it could use the variables VIDEO_MPLAYER_SUFFIX and VIDEO_XINE_SUFFIX that are in the config file. It seems there are no SUFFIX variables for audio extensions but I think ogg or spx could be other suffixes for audio. The code could be something like this (It's not tested): def createFxd(item,filename): AUDIO_SUFFIX = ['mp3', 'ogg', 'spx', 'wma'] is_audio = False fullFilename=config.RSS_AUDIO+filename for cur_item in AUDIO_SUFFIX: if cur_item in item.url: ofile = re.sub(cur_item,'fxd',filename) item_is_audio = True if not is_audio: fullFilename=config.RSS_VIDEO+filename video_suffixes = config.VIDEO_MPLAYER_SUFFIX + config.VIDEO_XINE_SUFFIX for cur_item in video_suffixes: if cur_item in item.url: ofile = re.sub(cur_item,'fxd',filename) -- signature.asc Description: Digital signature
Re: [Freevo-users] Freevo RSS Client
Great idea! I'll get to it. On 2/24/06, Gorka Olaizola [EMAIL PROTECTED] wrote: On Fri, Feb 24, 2006 at 12:20:28PM -0500, Justin Wetherell wrote:I have done some code fixing and exception handling; if you are using this I would suggest downloading the new version.I have a suggestion.In the file rssPeriodic.py there is this code.def createFxd(item,filename): if mp3 in item.url: fullFilename= config.RSS_AUDIO+filename ofile = re.sub('mp3','fxd',filename) else: fullFilename=config.RSS_VIDEO+filename if mov in item.url: ofile = re.sub('mov','fxd',filename) elif avi in item.url: ofile = re.sub('avi','fxd',filename) elif mp4 in item.url: ofile = re.sub('mp4','fxd',filename) elif m4v in item.url: ofile = re.sub('m4v','fxd',filename) else: ofile = re.sub('wmv','fxd',filename)I think it would be better ifit could use the variables VIDEO_MPLAYER_SUFFIX and VIDEO_XINE_SUFFIX that are in the config file. It seems there are no SUFFIX variables for audioextensions but I think ogg or spx could be other suffixes for audio.The code could be something like this (It's not tested):def createFxd(item,filename): AUDIO_SUFFIX = ['mp3', 'ogg', 'spx', 'wma']is_audio = FalsefullFilename=config.RSS_AUDIO+filenamefor cur_item in AUDIO_SUFFIX: if cur_item in item.url: ofile = re.sub(cur_item,'fxd',filename) item_is_audio = Trueif not is_audio: fullFilename=config.RSS_VIDEO+filename video_suffixes = config.VIDEO_MPLAYER_SUFFIX + config.VIDEO_XINE_SUFFIX for cur_item in video_suffixes: if cur_item in item.url: ofile = re.sub(cur_item,'fxd',filename)---BEGIN PGP SIGNATURE-Version: GnuPG v1.4.2 (GNU/Linux)iD8DBQFD/3ZHAJWwPWWa2yoRAuhWAKC2sYZ7s/uNZOPXI/ISe5xo7aP1dQCdENuk xlQbITPs57eHgn2kZ4e9NEM==twDh-END PGP SIGNATURE-
Re: [Freevo-users] Freevo RSS Client
I found an AUDIO_SUFFIX in my local_conf and it also exists in freevo_conf; so I used that to base my program off it. It seems to work for me, let me know if anyone else has any problems. A new version is out and is much improoved (I was skipping some files that should have been skipped). Anyone out there using it; please redownload. http://freevohelp.com/rssOn 2/24/06, Gorka Olaizola [EMAIL PROTECTED] wrote:On Fri, Feb 24, 2006 at 12:20:28PM -0500, Justin Wetherell wrote:I have done some code fixing and exception handling; if you are using this I would suggest downloading the new version.I have a suggestion.In the file rssPeriodic.py there is this code.def createFxd(item,filename):if mp3 in item.url:fullFilename= config.RSS_AUDIO+filenameofile = re.sub('mp3','fxd',filename)else:fullFilename=config.RSS_VIDEO+filenameif mov in item.url:ofile = re.sub('mov','fxd',filename) elif avi in item.url:ofile = re.sub('avi','fxd',filename)elif mp4 in item.url:ofile = re.sub('mp4','fxd',filename)elif m4v in item.url:ofile = re.sub('m4v','fxd',filename)else:ofile = re.sub('wmv','fxd',filename)I think it would be better ifit could use the variables VIDEO_MPLAYER_SUFFIX and VIDEO_XINE_SUFFIX that are in the config file. It seems there are no SUFFIX variables for audioextensions but I think ogg or spx could be other suffixes for audio.The code could be something like this (It's not tested):def createFxd(item,filename): AUDIO_SUFFIX = ['mp3', 'ogg', 'spx', 'wma']is_audio = FalsefullFilename=config.RSS_AUDIO+filenamefor cur_item in AUDIO_SUFFIX:if cur_item in item.url:ofile = re.sub(cur_item,'fxd',filename)item_is_audio = Trueif not is_audio:fullFilename=config.RSS_VIDEO+filenamevideo_suffixes = config.VIDEO_MPLAYER_SUFFIX + config.VIDEO_XINE_SUFFIX for cur_item in video_suffixes:if cur_item in item.url:ofile = re.sub(cur_item,'fxd',filename)---BEGIN PGP SIGNATURE-Version: GnuPG v1.4.2 (GNU/Linux)iD8DBQFD/3ZHAJWwPWWa2yoRAuhWAKC2sYZ7s/uNZOPXI/ISe5xo7aP1dQCdENukxlQbITPs57eHgn2kZ4e9NEM= =twDh-END PGP SIGNATURE-
Re: [Freevo-users] Freevo RSS Client
El Jueves, 23 de Febrero de 2006 10:36, Justin Wetherell escribió: Don't put the actual Directory into the helpers directory; just put the three files. Ok. With http://twit.libsyn.com/rss,7 I get a big video in the right directory. http://www.comunicandopodcast.com/podcast.php,10 This one works too. But with others, like: http://www.cadenaser.com/rssaudio/entrevistas.html,2 the plugin fails witht his: [EMAIL PROTECTED]:/mnt/musica/PodAudio$ Traceback (most recent call last): File /usr/lib/python2.3/site-packages/freevo/helpers/rssServer.py, line 6, in ? t = threading.Thread(rssPeriodic.checkForUpdates()) File /usr/lib/python2.3/site-packages/freevo/helpers/rssPeriodic.py, line 71, in checkForUpdates itemDate = convertDate(item.date) File /usr/lib/python2.3/site-packages/freevo/helpers/rssPeriodic.py, line 10, in convertDate itemDate = re.search(\d+\s+\S+\s+\d+,string).group() AttributeError: 'NoneType' object has no attribute 'group' As you can see, I'm using python-2.3 with freevo-1.5.4. Probably this is happening because it needs more debugging, so I thought it could help. Anyway, thanks for your work. Alberto --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Freevo RSS Client
The problem with the last feed is; it doesn't comply with the rss guideline. Each rss should have a Published Date field, so you can see how old it is. There really isn;t any dates in that feed to parse which'll make it quite hard to figure out.On 2/23/06, Alberto Hernando [EMAIL PROTECTED] wrote: El Jueves, 23 de Febrero de 2006 10:36, Justin Wetherell escribió: Don't put the actual Directory into the helpers directory; just put the three files.Ok.Withhttp://twit.libsyn.com/rss,7I get a big video in the right directory. http://www.comunicandopodcast.com/podcast.php,10This one works too.But with others, like:http://www.cadenaser.com/rssaudio/entrevistas.html,2 the plugin fails witht his:[EMAIL PROTECTED]:/mnt/musica/PodAudio$ Traceback (most recent call last):File /usr/lib/python2.3/site-packages/freevo/helpers/rssServer.py, line 6,in ?t = threading.Thread(rssPeriodic.checkForUpdates())File /usr/lib/python2.3/site-packages/freevo/helpers/rssPeriodic.py, line71, in checkForUpdatesitemDate = convertDate(item.date)File /usr/lib/python2.3/site-packages/freevo/helpers/rssPeriodic.py, line 10, in convertDateitemDate = re.search(\d+\s+\S+\s+\d+,string).group()AttributeError: 'NoneType' object has no attribute 'group'As you can see, I'm using python-2.3 with freevo-1.5.4. Probably this is happening because it needs more debugging, so I thought it could help.Anyway, thanks for your work.Alberto---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Freevo-users mailing listFreevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
[Freevo-users] Freevo RSS Client
I made an Rss client for Freevo; it is an addition server that runs and checks for new podcasts or video podcasts. It's pretty hacky at this point but running well; so far. It will download the podcast and create an fxd file at this point. You need to add some options to the local_config.py file: #RSS FEED FILES AND DIRECTORIES RSS_FEEDS='/etc/freevo/rss.feeds' RSS_VIDEO='/opt/media/tv/' RSS_AUDIO='/opt/media/podcasts/' You will need to make a rss.feeds file: it contains the URL and the number of days it's been published (7 days since it's been published, in this example) #/etc/freevo/rss.feeds file http://twit.libsyn.com/rss,7 http://leo.am/podcasts/twit,7 http://leo.am/podcasts/itn,7 http://leo.am/podcasts/dgw,7 http://leo.am/podcasts/sn,7 Untar the following files http://freevohelp.com/FILES/freevoRss.tar and place in your /usr/local/freevo/src/helpers directory. You can start it; with the following command: freevo rssServer start You can stop with the following command: freevo rssServer stop