Author |
Message |
Spud911
|
Posted: Mon Jul 03, 2006 10:17 am |
|
Joined: Sun Nov 16, 2003 11:26 pm
Posts: 42
|
hmm I edited my podcast directory and had no issue. Not time stamp or anything.
poddir=/myth2/video/IPTV/
I also just put in individual directory names, not the entire path, into my subscriptions file.
# dl.tv H.264 video
http://rssnewsapps.ziffdavis.com/audiob ... .H.264.xml DL.TV
Everything comes out nice and pretty:
Code: drwxr-xr-x 11 mythtv gdm 152 2006-07-03 09:41 . drwxrwxrwx 4 mythtv root 4096 2006-07-02 11:02 .. drwxr-xr-x 2 mythtv mythtv 63 2006-07-02 11:01 Ask a Ninja drwxr-xr-x 2 mythtv mythtv 34 2006-07-03 09:41 commandN drwxr-xr-x 2 mythtv mythtv 32 2006-07-02 00:47 Cranky Geeks drwxr-xr-x 2 mythtv mythtv 61 2006-07-03 03:10 Ctrl+Alt+Chicken drwxr-xr-x 2 mythtv mythtv 26 2006-07-01 23:29 DL.TV drwxr-xr-x 2 mythtv mythtv 6 2006-07-01 23:16 Lab Rats drwxr-xr-x 2 mythtv mythtv 103 2006-07-03 03:00 Podcasts drwxr-xr-x 2 mythtv mythtv 6 2006-07-03 09:41 Systm drwxr-xr-x 2 mythtv mythtv 6 2006-07-01 23:16 Tikibar TV
|
|
Top |
|
 |
Human
|
Posted: Mon Jul 03, 2006 10:24 am |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
Spud911 wrote: hmm I edited my podcast directory and had no issue. Not time stamp or anything.
poddir=/myth2/video/IPTV/ Hmm. I'll try it again, then, just to be sure. The lack of error messages or logging doesn't help much  Quote: I also just put in individual directory names, not the entire path, into my subscriptions file. Everything comes out nice and pretty:
Well, you're using relative directories that all live under $poddir, right? I wanted to tell audio podcasts to go into /myth/music/ and video podcasts to go into /myth/video/ so I used /myth/music/podcasts/ as $poddir and then gave video podcasts an absolute path in the subscriptions file.
Maybe it'd be better to have multiple subscription files, each with their own defined root directory. Then you could handle audio and video podcasts without having to do what I tried.
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
 |
Spud911
|
Posted: Mon Jul 03, 2006 6:34 pm |
|
Joined: Sun Nov 16, 2003 11:26 pm
Posts: 42
|
That makes sense. Should not take too much to modify the script to do what you want.
Personally I just put everything in my Videos directory, and then setup Myth to ignore .mp3 files in that directory. I never listen to the audio podcasts on my mythbox and use a MP3 player for my commute to work, so it works out fine the way it is.
On a whim I downloaded Rocketboom (always meant to check it out) and I get the same thing you do a bunch of directories. Looks like they are encapsulating the podcast that way, so everthing is fine.
|
|
Top |
|
 |
Human
|
Posted: Mon Jul 03, 2006 7:51 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
Spud911 wrote: On a whim I downloaded Rocketboom (always meant to check it out) and I get the same thing you do a bunch of directories. Looks like they are encapsulating the podcast that way, so everthing is fine.
Rocketboom is great  The episodes come in subdirectories when you download them via a separate bittorrent client, too, but the thing I ran into was that the directory names had "directory name:" pre-pended to them.
Just another thing for me to fix 
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
 |
arzdb
|
Posted: Wed Jul 05, 2006 5:18 pm |
|
Joined: Sat Jul 09, 2005 2:04 pm
Posts: 32
|
Not trying to hijack this thread...
I've been using podget and it's worked quite well for me. One thing that I would like would be to have cover-art automatically chosen for my recordings in myth. For example: I run podget on a cronjob at 3:00 am, which downloads DL.TV. If I go to mythvideo I automatically can see the DL.TV episode, but all of its meta data is blank, as it is with any new video that I add.
Is there a way within myth to say, if filename is "dl.tv.*" then apply the following meta data? Or more realistically, does anyone know a systematic way to modify the mythconverg db to do that at 3:30 am on a cronjob?
|
|
Top |
|
 |
HenrikA
|
Posted: Thu Jul 06, 2006 3:16 pm |
|
Joined: Fri Mar 10, 2006 2:44 am
Posts: 4
Location:
Stockholm, Sweden
|
arzdb wrote: Not trying to hijack this thread...
I've been using podget and it's worked quite well for me. One thing that I would like would be to have cover-art automatically chosen for my recordings in myth. For example: I run podget on a cronjob at 3:00 am, which downloads DL.TV. If I go to mythvideo I automatically can see the DL.TV episode, but all of its meta data is blank, as it is with any new video that I add.
Is there a way within myth to say, if filename is "dl.tv.*" then apply the following meta data? Or more realistically, does anyone know a systematic way to modify the mythconverg db to do that at 3:30 am on a cronjob?
I have been thinking about the same thing...
And one more, is it possible to delete files from the mythvideo menu as in Recordings? A podcast directory grows fast!
|
|
Top |
|
 |
Human
|
Posted: Fri Jul 07, 2006 1:00 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
I've done some things to podracer:
1) enabled the use of either absolute or relative target directories in the subscriptions file
2) backgrounded all downloads, turning the bottleneck into the user's ISP, not one podcast's server at a time
3) enabled the setting of ports for bittorrent
Everything seems to be working ok, except I need a way to somehow globally throttle podracer-related network usage. Any ideas how to do that? Upload throttling (for bittorrent) is the most important for most people, since maxing out your upload essentially breaks your ability to use most of your download bandwidth.
Also, I'm not sure at this point why the original author chose to embed python code into the bash script when, as far as I can tell, command-line bittorrent calls should have worked just as well and would be more future-proof.
Still tweaking.
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
 |
HenrikA
|
Posted: Thu Jul 27, 2006 3:51 pm |
|
Joined: Fri Mar 10, 2006 2:44 am
Posts: 4
Location:
Stockholm, Sweden
|
This is my setup to automatically download podcast video, maybe it will be of some use to someone...
I use bashpodder and have included tweaks by Brian Hefferan to get configuration options like --verbose, --catchup_all and --bittorrent and by Brett Lytles to get downloads to separate directorys.
Download bashpodder.shell, bp.conf and parse_enclosure.xsl
and save them somewhere like in /home/mythtv/bin
Make sure bashpodder.shell is executable.
bashpodder.shell will save the video podcasts in /myth/video/vidcast/, edit line 107 if you want to change that.
Edit bp.conf to add or remove my video podcasts.
Notice that for example 'DLTV@http://rssnewsapps.ziffdavis.com/audioblogs/DLTV.xvid.xml' will download new dl.tv shows to the subdirectory DLTV (in my case /myth/video/vidcast/DLTV)
If you dont want to download EVERYTHING you can run Code: bashpodder.shell --catchup_all the first time. All 'downloaded' files will then be in the file podcast.log. Execute by running Code: bashpodder.shell -v If everything is working fine you can use cron to run it automatically at 04:10 and 16:10 by executing Code: crontab -e as user mythtv in a console and add Code: 10 4,16 * * * /home/mythtv/bin/bashpodder.shell .
I don't use the bittorrent option because I don't know how to automatically exit the seeding when the download is done.
If I could only figure out an easy way to delete the videos when I have watched them...
|
|
Top |
|
 |
kmkittre
|
Posted: Tue Apr 10, 2007 12:37 pm |
|
Joined: Tue Jul 12, 2005 8:01 am
Posts: 670
Location:
Salem, MA
|
I followed HenrikA's instructions to install bashpodder, and it works great. However, I wanted a way to manage my podcasts via a web interface (so I could edit them from wherever without needing to ssh). So, I put together some php scripts to handle this. I thought I would share them if anyone else wants to use them. (please be kind, this is the first time I've shared my code...)
Here are the scripts:
http://www.transmatrix.net/podcastmanager.tar
I would recommend using them as such:
1. create a new directory in /var/www like /var/www/pm
2. make sure the permissions are correct for the directory. I made the owner and group mythtv:
Code: chown mythtv:mythtv pm and, I set the permissions as such: Code: chmod 755 pm 3. untar podcastmanager.tar into /var/www/pm 4. edit conf.php to point to the bashpodder configuration file (/home/mythtv/bin/bp.conf if you followed HenrikA's instructions) 5. make sure bp.conf is readable and writable: Code: chmod 666 bp.conf
6. use your browser to go to <mythtvserver>/pm/podcasts.php
I also edited /var/www/mythweb/themes/default/header.php to have a link to podcasts.php, but that is not necessary. If anyone wants my header.php, though, I can provide it.
I have improvements I plan to make, this is pretty bare bones right now, but I thought that I would post it and see what people think and maybe give suggestions before I spent too much time on it.
If you have any questions, problems or comments, feel free to post them. Thanks!
_________________ LinHES 8.3, 1 BE, 3 FE
|
|
Top |
|
 |
Spud911
|
Posted: Sat May 26, 2007 7:19 am |
|
Joined: Sun Nov 16, 2003 11:26 pm
Posts: 42
|
HenrikA wrote: If I could only figure out an easy way to delete the videos when I have watched them...
I used a simple script that I found on these forums and modified a bit
Code: #!/bin/bash
purgedays=5
workdir=" "
if [ ! -d "$workdir" ]; then echo "Can't Open directory: $workdir!!!" exit 0 fi
find "$workdir" -name \*.mp4 -mtime +"$purgedays" -exec rm {} \; find "$workdir" -name \*.mov -mtime +"$purgedays" -exec rm {} \; find "$workdir" -name \*.mp3 -mtime +"$purgedays" -exec rm {} \; find "$workdir" -name \*.m4v -mtime +"$purgedays" -exec rm {} \; find "$workdir" -name \*.avi -mtime +"$purgedays" -exec rm {} \;
Make a cron job to check once or twice a day and you have an autoexpiring podcast directory. kmkittre: I like the idea of your podcast manager and I will give it a try when I get the chance. But I am not sure that it will work with Podracer, although it is just bashpodder with a few additions. Edit: kmkittre well the differences are a little bit for substantial that I thought. podracer uses a subscriptions file instead of bp.conf and the format is different Code: http://rssnewsapps.ziffdavis.com/audioblogs/DLTV.H.264.xml DL.TV http://feeds.feedburner.com/tikibartv TikiBarTV
The directory is after the URL, so your program does not parse correctly. That is fine though as I can see where it can be edited and modified, but since I am not really in my podcast subscription file that often I will leave it alone. Good idea though
|
|
Top |
|
 |