Home Latest show Previous shows Presenters Forums Contact FAQ LugRadio Live Map Planet #lugradio

Announcing Oidargul

Post in this forum links to mirrors where LUGRadio episodes can be downloaded. We need your mirrors!!

Moderators: mrben, jono, matt, trig

User avatar
mrben
Unbelievable LugRadio community master
 
Posts: 3236
Joined: Wed Mar 10, 2004 10:27 am
Location: Glasgow

Announcing Oidargul

Postby mrben on Wed Jul 20, 2005 11:23 am

Following the OSS principle of 'release early, release often' I am pleased to announce the very first version of Oidargul, a system to help you mirror Lugradio effectively.

Essentially I have built the backend (Python) library that does most of the hard work, and put in a simple text front end so that you can (kind of) see it in action. I will begin work on a cross platform GUI frontend with wxPython as soon as possible.

The code is available here or you can view the prettified HTML version of the code at http://www.jedimoose.org/mrben/oidargul ... l3.py.html

NOTE - for some reason I cannot download from audio.lugradio.org at the moment, thus it doesn't do a lot after it has downloaded the feed. But it does work ;)

The plan is that it will create a nice system that will:

a) download the mirror feed and parse it for the URLs
b) download the files
c) upload them via ftp to your site
d) invoke the addmirror script to add you to the rotation
e) have a system to delete your mirror from the system

It should, in theory, be possible to use the module to create a daemon to do this automatically too.

At the moment it is not possible to use it to create a brand new mirror with all files, because the mirror feed does not go that far back.....


All comments and thoughts are welcome, abuse will probably be tolerated.
mrBen
Carpe Aptenodytes

http://www.jedimoose.org

User avatar
No'
Concerningly committed to LugRadio
 
Posts: 670
Joined: Sat Mar 13, 2004 2:31 am
Location: Bayonne, France

Postby No' on Wed Jul 20, 2005 12:23 pm

Oidargul ? What the hell does this name?... oh, wait! :wink:

/me thinks MORE AND MORE about becoming a mirror maintainer
--
No', ubuntero
Jabber: brunobord@jabber.org

billybofh
Knows their stuff
 
Posts: 291
Joined: Sun Apr 17, 2005 9:09 pm

Postby billybofh on Wed Jul 20, 2005 1:08 pm

Yay! :)

Are you accepting patches? :)

User avatar
mrben
Unbelievable LugRadio community master
 
Posts: 3236
Joined: Wed Mar 10, 2004 10:27 am
Location: Glasgow

Postby mrben on Wed Jul 20, 2005 2:08 pm

billybofh wrote:Yay! :)

Are you accepting patches? :)


Heh - feel free.

I'm working on the GUI at the moment - should have something knocked up in the next 24-48 hours. From that point I will look seriously at patches and suggestions :)
mrBen
Carpe Aptenodytes

http://www.jedimoose.org

User avatar
Aq
LugRadio Presenter
 
Posts: 2233
Joined: Mon Mar 01, 2004 4:38 pm

Re: Announcing Oidargul

Postby Aq on Wed Jul 20, 2005 3:04 pm

mrben wrote:Following the OSS principle of 'release early, release often' I am pleased to announce the very first version of Oidargul, a system to help you mirror Lugradio effectively.

Wow. Cool. You're a star. Can you let us know when you're happy with it and we'll link it from the site?
mrben wrote:for some reason I cannot download from audio.lugradio.org at the moment

Yeah, yeah, it was broken, I've fixed it and made sure it won't happen again :)
mrben wrote:At the moment it is not possible to use it to create a brand new mirror with all files, because the mirror feed does not go that far back.....

You mean the lugradiomirrors blog, rather than the official RSS feed? What would you need the official RSS feed to do to make this possible?

Aq.

User avatar
matt
Previous LugRadio Presenter
 
Posts: 1593
Joined: Fri Feb 27, 2004 5:15 pm
Location: Wolverhampton, UK

Postby matt on Wed Jul 20, 2005 3:08 pm

MrBen, this awesome. Nice one.

I may transfer the LR mirror feed to lugradio.org soon, depending on what Aq and Jono think, as it's their server :)

Anyway, what format, or whatever, should the mirror feed be in to help you?

User avatar
mrben
Unbelievable LugRadio community master
 
Posts: 3236
Joined: Wed Mar 10, 2004 10:27 am
Location: Glasgow

Re: Announcing Oidargul

Postby mrben on Wed Jul 20, 2005 3:11 pm

Aq wrote:You mean the lugradiomirrors blog, rather than the official RSS feed? What would you need the official RSS feed to do to make this possible?

Aq.


Yes - I was presuming that the idea would be for mirror maintainers to use it, thus it should use the mirror feed, as it tends to get updated first.

It wouldn't take much for it to use the official feed instead - just a minor change in the xml parsing to pick out the correct filenames. However, the official feed doesn't include the low files, so you would need to provide feeds for them too.

The GUI is coming along nicely - I hope to have reasonable functionality within the next 24 hours - but I need to fiddle about with threading and the like, so that the GUI doesn't hang while it downloads and uploads files ;)
mrBen
Carpe Aptenodytes

http://www.jedimoose.org

User avatar
No'
Concerningly committed to LugRadio
 
Posts: 670
Joined: Sat Mar 13, 2004 2:31 am
Location: Bayonne, France

Postby No' on Wed Jul 20, 2005 3:56 pm

Hang on! I know!!!

Mrben wants to keep Yonkeltron's artwork until LRL'07 for himself.
--
No', ubuntero
Jabber: brunobord@jabber.org

User avatar
mrben
Unbelievable LugRadio community master
 
Posts: 3236
Joined: Wed Mar 10, 2004 10:27 am
Location: Glasgow

Postby mrben on Wed Jul 20, 2005 4:10 pm

matt wrote:MrBen, this awesome. Nice one.

I may transfer the LR mirror feed to lugradio.org soon, depending on what Aq and Jono think, as it's their server :)

Anyway, what format, or whatever, should the mirror feed be in to help you?


It doesn't really make much difference. The program simply grabs tags from the XML - it's nothing particularly complicated once you get round Pythons slightly idiosyncratic XML handling.
mrBen
Carpe Aptenodytes

http://www.jedimoose.org

User avatar
mrben
Unbelievable LugRadio community master
 
Posts: 3236
Joined: Wed Mar 10, 2004 10:27 am
Location: Glasgow

Postby mrben on Wed Jul 20, 2005 5:02 pm

OK - in true 'pretending-to-work-at-work-but-instead-working-on-a-more-interesting-python-project' form, here is the the beginnings of a GUI:

code
HTML-ised source code

It's based on wxPython 2.6, although should work with earlier versions, but you will need wx installed. Renders fine on Windows - haven't checked it under Linux yet.

Most of the functionality is there, although it's not fully tested as yet. Oh, and you can only set the preferences in a file called .oidargul in the directory that you run it from - I hope to change that soon :)

Oh - one last thing. You will need to fill in the .oidargul file - there is a demo one here - it should be fairly self explanatory, but if you don't have everything filled out (apart from the [Status] section) then it will probably b0rk itself.

Enjoy!

<edit>and another thing - the original oidargul3.py file needs to be in the same directory as the other 2 files, otherwise it won't find the module</edit>
mrBen
Carpe Aptenodytes

http://www.jedimoose.org

User avatar
jono
LugRadio Presenter
 
Posts: 1000
Joined: Fri Feb 27, 2004 4:13 pm
Location: UK

Postby jono on Wed Jul 20, 2005 6:48 pm

Once again mrben pulls an impressive feat of commitment to LUGRadio. Thanks man... :)

User avatar
mrben
Unbelievable LugRadio community master
 
Posts: 3236
Joined: Wed Mar 10, 2004 10:27 am
Location: Glasgow

Postby mrben on Wed Jul 20, 2005 10:14 pm

jono wrote:Once again mrben pulls an impressive feat of commitment to LUGRadio. Thanks man... :)


Heh - either that or an impressive lack of commitment to doing any real work.......

I've got home to discover an interesting problem running under Linux - possibly to do with a mismatch of wxPython versions. If you get an error which ends something like this:

Code: Select all
AttributeError: FileTree instance has no attribute 'Bind'


Then try this alternative version from here instead, which uses a slightly differently invocation to bind events to functions.

I've also realised in passing that at the moment it doesn't handle multiple ftp sources, which is a problem if you want to store different files on different mirrors - I might see if I can sort that too.

Obviously the proof of the pudding is in the eating, and I would be grateful if any of the mirror maintainers could give it a try and post their feedback/comments. I am hoping that by the next release I'll have something that I can actually use......
mrBen
Carpe Aptenodytes

http://www.jedimoose.org

baafie
New to the freak show
 
Posts: 28
Joined: Tue May 17, 2005 1:49 pm

Postby baafie on Thu Jul 21, 2005 12:22 am

I'm not trying to be a dick here, but why not use an existing mirroring+monitoring system?

User avatar
mrben
Unbelievable LugRadio community master
 
Posts: 3236
Joined: Wed Mar 10, 2004 10:27 am
Location: Glasgow

Postby mrben on Thu Jul 21, 2005 6:57 am

baafie wrote:I'm not trying to be a dick here, but why not use an existing mirroring+monitoring system?


Say what?

I was not aware of an existing system - is there one that does all I need, including interacting with Aqs custom mirror script?
mrBen
Carpe Aptenodytes

http://www.jedimoose.org

baafie
New to the freak show
 
Posts: 28
Joined: Tue May 17, 2005 1:49 pm

Postby baafie on Thu Jul 21, 2005 10:28 am

I was thinking more along the lines of Aq ditching his script and going with something like rsync and mirmon.

Next

Return to Mirrors

Who is online

Users browsing this forum: No registered users and 0 guests

cron