Active Topics

 


Reply
Thread Tools
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#11
My problem is that I'm very new to the 770 and even newer to Linux, so I have to ask some stupid questions. I have installed osso-xterm and wget, but now I'm not sure how to get the script into the 770! Do I just paste it into a text editor and save to /usr/bin? If so, do I need to use a particular type of editor?

You could check out this link and download it there. I can't attach .pl files to this thread or i'd do that http://files-upload.com/files/443464/myfilm.pl

1. MPlayer seems to find videos on the mmc card without any trouble, so if I want the videos to be downloaded directly to the rs-mmc card, should I edit the script accordingly (how?), or should I mount MyDocs/.videos to a folder on the card (how?)

I don't have an MMC card yet so I can't say if it would be different, but...at the moment Mplayer scans /home/user/MyDocs/.videos on startup. Perhaps it also scans the memory card. Once you test it out, let us know! I could help edit it to scan the card too but would need the directory names...

2. Just to confirm, there is no longer any need to install bash, links, or getopt/std.pm, correct?

Yep, wget is all it needs.

3. It looks like you changed -z to -s.

-s made more sense for _scanning_ than z

4. This is really stupid, I'm sure: What is chmod a+x

That changes file access permissions. It says all users can execute the file. Move the file to somewhere in your PATH (ie /usr/bin) and simply typing it's name at the command line will run it.

5. You mentioned the possibility of calling the script from a shortcut in the menu. Still considering that? (or how could I do it myself?)

I'm starting to journal the stuff I'm learning. There's a post on how to add shortcuts to the menu at my new site: http://770hax.today.com/

6. You mentioned "optionally deleting the file afterwards," but I assume all cleanup is manual at this point? (e.g. File Manager for deleting videos and Bookmark Manager for deleting bookmarks).

Opera breaks up the .xml file really poorly when making new bookmarks. I'm not patient enough (yet) to figure out the sed commands required to delete old ones. Another script can easily be made to delete all the .flv files. The bookmarks still have to be erased by hand I'm afraid, although the script is smart enough to check and see if it's been downloaded already and skip if it has. So you can just be lazy too and let them pile up a while before deleting

7. Can all of these YouTube bookmarks be kept in their own bookmark folder?

I'm not sure, try and find out! I don't know how Opera handles folders yet. Let me know and we could update the script to handle it I'm sure.
 
Posts: 2 | Thanked: 0 times | Joined on Aug 2007 @ Arlington, TX
#12
OK, I'm sure this isn't the preferred method, but I was able to:

1. download the script file to my Windows PC
2. use my USB cable to copy it to the RS-MMC card on my 770
3. [install "becomeroot" then] vm the file from /media/mmc1 to /usr/bin
4. do the chmod a+x thing...

...and everything worked perfectly, just as advertised!

I then created a folder on my RS-MMC card called "youtubevids" and changed the script line for "default save dir for youtube" to:

my $defdir = "/media/mmc1/youtubevids";

and that allows me to download vids directly to the RS-MMC card. (I had to install "nano" for editing the script because the vi editor was scaring me.)

Creating the YouTube video bookmarks in their own bookmark folder works fine. The script finds them without any difficulty.

Keeping the Opera bookmarks cleaned up (i.e., deleted after use) is going to be the most inconvenient part of the ongoing procedure.

Later I'll look at running the script from a shortcut.

(Now if I can just find the forum thread that explains why MPlayer crashes and reboots my 770 unless I close all other apps and disconnect Wi-fi before running MPlayer.)

Thanks again!
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#13
Originally Posted by buz View Post
(Now if I can just find the forum thread that explains why MPlayer crashes and reboots my 770 unless I close all other apps and disconnect Wi-fi before running MPlayer.)
You can check this link in maemo bugzilla for more information probably related to this issue: https://bugs.maemo.org/show_bug.cgi?id=820
 
Posts: 9 | Thanked: 1 time | Joined on Jan 2007
#14
Hi,
I've followed the instructions (install wget, download script, make executable) and when I run the script I get the following error :
/usr/bin/perl: error while loading shared libraries: /usr/lib/libperl.so.5.8: unexpected PLT reloc type 0x00

I'm using OS2006 3.2006.49-2

Any ideas ?
Thanks.

Last edited by steve walsh; 2007-08-21 at 18:55.
 
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#15
Awesome! Glad it's working for people!

@steve walsh: I had some problems moving files back and forth from a windows machine and having the format get f**ked up. Could that be it? Somebody smarter could probably help more than I...

@buz: Cleaning up the bookmarks can be included in the script, it would just take some patience in figuring out the proper s/******/i line in perl. It needs to be able to match across linebreaks and I'm not sure how to do that yet...
__________________
~Nokia n810 OS Diablo 5.2008.43-7~ my (old 770) hax: http://770hax.today.com
 
Posts: 9 | Thanked: 1 time | Joined on Jan 2007
#16
hi, i re-downloaded the .pl script and the problem disappeared.
but i've got a new one - it finds the bookmarks then fails. is it looking for the download directory when it fails?

~ $ ./myfilm.pl -s
Found 2 bookmarked videos:
: http://www.youtube.com/watch?v=Cz_2vKq5cZk
myfilm.pl http://www.youtube.com/watch?v=Cz_2vKq5cZk
failed: No such file or directory
~ $

thanks in advance
 
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#17
The script has to be in your PATH.
move it to /usr/bin and it will work.
__________________
~Nokia n810 OS Diablo 5.2008.43-7~ my (old 770) hax: http://770hax.today.com
 
Posts: 9 | Thanked: 1 time | Joined on Jan 2007
#18
oops... yes, that's sorted it !
how stoopid do i feel?
thanks
 
Posts: 3 | Thanked: 0 times | Joined on Aug 2007
#19
So I downloaded the script, put in in /usr/bin, did that chmod.

When I start the script, I get the error "not found".

When I do "perl myfilm.pl -s" I get "Unterminated <>operator at myfilm.pl line 60."

So what does it mean and what can I do?

Thanks!
 
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#20
Sorry, I have no way to debug it for you...I suppose if you don't want to open the file in an editor and look around, you're screwed.
__________________
~Nokia n810 OS Diablo 5.2008.43-7~ my (old 770) hax: http://770hax.today.com
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:19.