[mythtv-users] MythWeb filename to actual filename
Steve Heistand
steve at heistand.org
Fri Apr 3 15:10:30 UTC 2009
On Fri, 3 Apr 2009 08:44:04 -0400, David Fishburn wrote
> How do you map this URL:
> mythweb/tv/detail/1010/1238544000
>
> To the actual filename on the filesystem?
>
> I would have thought there would be a:
> recordings/1010_1238544000.mpg
>
> But there isn't.
>
> TIA,
> Dave
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
#!/bin/csh
set path=$1
set stamp=`echo $path | /usr/bin/awk -F'/' '{print $NF}'`
set chan=`echo $path | /usr/bin/awk -F'/' '{print $(NF-1)}'`
set date=`/bin/date -d @${stamp} '+%Y%m%d%H%M%S'`
set file="${chan}_${date}"
echo $file
####
the file extension you will have to add in yourself as from just the mythweb path
you wont know it.
but something like
prompt: cp `script_name mythweb/tv/detail/1010/1238544000`.* /new/path/
might work. but it also would copy the thumbnails
"Why is it so hot inside this handbasket?"
--
Steve Heistand
steve at heistand.org
More information about the mythtv-users
mailing list