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 [2007/09/27 01:04] – david | myth_tv_homebrew_project [2009/03/01 15:42] (current) – david | ||
|---|---|---|---|
| Line 444: | Line 444: | ||
| * Get LIRCD up and running BEFORE you compile MPlayer as it will autodetect it if you have it up when you compile MPlayer. | * Get LIRCD up and running BEFORE you compile MPlayer as it will autodetect it if you have it up when you compile MPlayer. | ||
| * EDIT / | * EDIT / | ||
| + | |||
| + | ===== Human Readable File Names ===== | ||
| + | |||
| + | * Note this is specific to Mythbuntu | ||
| + | |||
| + | - Create a directory under recordings that you can write to: < | ||
| + | sudo mkdir / | ||
| + | sudo chgroup video / | ||
| + | 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 / | ||
| + | </ | ||
| ====== Support Configurations ====== | ====== Support Configurations ====== | ||
myth_tv_homebrew_project.1190855054.txt.gz · Last modified: (external edit)
