View Single Post
Posts: 46 | Thanked: 66 times | Joined on Jan 2010
#47
Originally Posted by Netweaver View Post
- If no browser is running yet, then the browser page is not opened up automatically. FYI I have 3 browser related processes running :
/usr/sbin/browserd -d
/usr/sbin/browserd -s 1396 -n RTComMessagingServer
/usr/bin/browser-switchboard

- it seems the scripts never ends... I still could see it in the process list and I had to kill it off manually.
The first problem may be related to browser-switchboard, and the second tends to happen if you run the script from the command line.

I've updated the script now to fix these problems (see the attachment). It does not use the browser any more, and it should kill all processes when you exit, even when run from the command line.

If you run it from the icon or without arguments from the command line, it asks which channel you want to watch, but you can also give the channel number as a command line argument. For example,
Code:
./tvcatchup.sh 1
will show BBC One.

You can also record the stream with
Code:
./tvcatchup.sh 1 filename.ts
You can give the length of the recording in minutes as the third argument, so
Code:
./tvcatchup.sh 1 filename.ts 60
records 60 minutes of BBC One to filename.ts.

The first time you run the script, it asks for your username and password. It stores them in /home/user/.catchup, so you won't need to enter them when you use it again, but be careful if you want to keep them secret.
Attached Files
File Type: gz tvcatchup.tar.gz (1.8 KB, 150 views)
 

The Following 3 Users Say Thank You to arajantie For This Useful Post: