Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Doga Armangil
RE: Unify vodcatcher and podcatcher [ reply ]  
2007-07-17 15:19
Vodcatcher has now merged with podcatcher (as of version 2.0.0).

By: Doga Armangil
RE: Unify vodcatcher and podcatcher [ reply ]  
2005-11-18 15:31
Radu, Hi,
I have also thought about this, and tried to strike a balance between ease of use and ease of development (which encourages code unification).

It seems to me that fully unifying the code base would make the development task only marginally easier, without improving the ease of use at all (so I do not really have an incentive for doing so :).

Thanks for your comment.

By: Radu Raduta
Unify vodcatcher and podcatcher [ reply ]  
2005-11-18 02:25
Since the pod and vodcatcher share so much of the codebase, why not just unify them with some ruby magic:

====
if $0 =~ /vod/
opt.mode = opt.MODES[1] #vodcatcher mode
else
opt.mode = opt.MODES[0] #podcatcher mode
end
====

add a symlink (or just copy) the program to a file that contains the substring "vod" and it acts as the vodplayer. additionally, you can make a switch (-v, --vod) for setting the mode.