I want the whole repo


so why is it out of question to post a FTP site of server where people can log in, and just download each and every pnd?

well maybe a few devs might be unhappy if the ftp isnt kept up to date and also if the devs cant make a choice to delete their pnds if they want.
 
so why is it out of question to post a FTP site of server where people can log in, and just download each and every pnd?

well maybe a few devs might be unhappy if the ftp isnt kept up to date and also if the devs cant make a choice to delete their pnds if they want.

This can be easily overcome if a decent synchronization system is setup. With the right software and knowledge this is pretty much peanuts. The complete Milkshake Repo can be linked to a synchronization system which is then linked to an FTP. Files are copied in all directions, including changes.


Meanwhile auto-generate Torrent files every X period via a script. Welcome to 2011! :p
 
In all seriousness, why do you want every PND? All it'll do in the end is add extra clutter. You can always install new PNDs later.
Because the easiest way for me to determine if a PND is worth my time is to try it out.

It's also worth noting that some great programs just aren't on the Repo right now.
What is the best way to find out about these programs?
 
Well one might write a spider to browse the repo's web interface and download every PND it finds.


Oh, it's even more trivial as far as I see.



Code:
get this page: url="http://repo.openpandora.org/?page=all&s=new&ipp=all

parse html for parts of links which follow &app= and dump them into an array

# You don't even need parser here, regular expression would do

for each element of the array

    	download  repo.openpandora.org/includes/download.php?app=$element

Under 10 lines in any scripting language.
 
Last edited by a moderator:

Ah haha! I love that commercial! They tell you at the end that you can get a $30 rebate plus a free copy of Pacman. Essentially, they are giving you $30 to TAKE Pacman! It was THAT bad, lol. Ah, I miss those days. especially seeing someone like myself could play Atari Pacman and ET and be satisfied.
 

Ah haha! I love that commercial! They tell you at the end that you can get a $30 rebate plus a free copy of Pacman. Essentially, they are giving you $30 to TAKE Pacman! It was THAT bad, lol. Ah, I miss those days. especially seeing someone like myself could play Atari Pacman and ET and be satisfied.
I loved ET on the Atari...never got why it was so hated on. As a kid I would also spend hours playing pacman on my Atari...if memory serves it had a light blue background.
 
Last edited by a moderator:

Ah haha! I love that commercial! They tell you at the end that you can get a $30 rebate plus a free copy of Pacman. Essentially, they are giving you $30 to TAKE Pacman! It was THAT bad, lol. Ah, I miss those days. especially seeing someone like myself could play Atari Pacman and ET and be satisfied.
I loved ET on the Atari...never got why it was so hated on. As a kid I would also spend hours playing pacman on my Atari...if memory serves it had a light blue background.

Yup. A light blue background, brown walls, and flickering enemies. It actually could've been a lot better; development was horribly rushed. Similar deal with E.T.


I've never played E.T., but from what I gather, people just found it incredibly annoying or confusing.
 
Code:
$json = json_decode(file_get_contents('http://repo.openpandora.org/includes/get_data.php'),true);

foreach( $json['packages'] as $package ){

$uri = $package['uri'];

$id  = $package['id'];


if( !file_exists("$id.pnd") )

{

echo "Downloading $uri as $id.pnd\n";

exec("curl $uri >> $id.pnd");

}

else

{

echo "File $id.pnd already exists!";

}

}


Why. Yes. I am insane.
 

PHP :D


Thus the insanity.


It worked, though, I've got ~4.2GB of repo on an SD card ready to go now.

In all seriousness, why do you want every PND? All it'll do in the end is add extra clutter. You can always install new PNDs later.
Because the easiest way for me to determine if a PND is worth my time is to try it out.

Quoted for truth. This is exactly why I want *everything*. I can sit in bed one night and just try everything, deleting anything that doesn't float my boat.
 
Last edited by a moderator:
Here is one liner in sh, gets even the correct filenames from the contend-disposition header.. You could use jsawk too, but it's less known.



Code:
for i in $(wget -O - -o /dev/null "http://repo.openpandora.org/includes/get_data.php" | sed '/.*"uri":"\([^"][^"]*\)".*/!d;s//\1/'); do wget --content-disposition "$i"; done

or Riviera's bash version



Code:
wget --content-disposition -i <(sed '/.*"uri":"\([^"][^"]*\)".*/!d;s//\1/' < <(wget -O - -o /dev/null http://repo.openpandora.org/includes/get_data.php))

If you later want updates, you can crawl your pnds with milkyhelper or panorama and update.


E: Some advice from Riviera.
 
Last edited by a moderator:
Hahaha, this was bound to evolve into a who can write the shortest version contest from the start :D
 
shorter version of cloudef's sh version:



Code:
wget -qO- http://repo.openpandora.org/includes/get_data.php|grep \"uri\":|cut -d '"' -f4|while read f;do wget --content-disposition "$f";done





:p





EDIT: apparently read is bash, not sh



Code:
for f in $(wget -qO- http://repo.openpandora.org/includes/get_data.php|grep \"uri\":|cut -d '"' -f4);do wget --content-disposition "$f";done
 
Last edited by a moderator:
Back
Top