myth_tv_homebrew_project
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
myth_tv_homebrew_project [2009/03/01 15:00] – david | myth_tv_homebrew_project [2009/03/01 15:42] (current) – david | ||
---|---|---|---|
Line 447: | Line 447: | ||
===== Human Readable File Names ===== | ===== Human Readable File Names ===== | ||
+ | * Note this is specific to Mythbuntu | ||
- | For Mythbuntu, I wanted to add a cronjob that builds links to the files: | ||
- | |||
- | - Copy the rename script to somewhere you can run it: < | ||
- | mkdir ~/bin | ||
- | cp / | ||
- | gunzip ~/ | ||
- | chmod 755 ~/ | ||
- | </ | ||
- Create a directory under recordings that you can write to: < | - Create a directory under recordings that you can write to: < | ||
sudo mkdir / | sudo mkdir / | ||
sudo chgroup video / | sudo chgroup video / | ||
sudo chmod 775 / | sudo chmod 775 / | ||
+ | </ | ||
+ | - Use the **mythlink.sh** scripts with a couple modifications to make the directories and links to your files whenever you need them. | ||
+ | |||
+ | < | ||
+ | |||
+ | #!/bin/sh | ||
+ | |||
+ | # mythlink.sh - Symlinks mythtv files to more readable versions | ||
+ | # by Dale Gass modified by Jacob Stoner | ||
+ | |||
+ | if [ ! -d / | ||
+ | rm -R -f / | ||
+ | |||
+ | echo "Done RM" | ||
+ | mysql -umythtv -pYOURPASSWORDGOESHERE | ||
+ | perl -w -e ' | ||
+ | my $mythpath= "/ | ||
+ | my $altpath= "/ | ||
+ | if (!-d $altpath) { | ||
+ | mkdir $altpath or die " | ||
+ | } | ||
+ | <>; | ||
+ | while (<>) { | ||
+ | chomp; | ||
+ | my ($chanid, | ||
+ | $start =~ s/ | ||
+ | $end =~ s/ | ||
+ | $subtitle = "" | ||
+ | my $ofn = " | ||
+ | do { print " | ||
+ | $start =~ / | ||
+ | #my $nfn = " | ||
+ | my $nfn = " | ||
+ | if ($subtitle) {$nfn=" | ||
+ | $nfn =~ s/ /_/g; | ||
+ | $nfn =~ s/&/ | ||
+ | $nfn =~ s/ | ||
+ | $nfn = " | ||
+ | print " | ||
+ | unlink " | ||
+ | mkdir " | ||
+ | symlink " | ||
+ | } | ||
+ | ' / | ||
+ | rm / | ||
</ | </ | ||
myth_tv_homebrew_project.1235919654.txt.gz · Last modified: 2009/03/01 15:00 by david