pouët.net

Embedding prod numbers in filenames and generating HTML lists of files

category: code [glöplog]
I have come up with a way of embedding the unique URL numbers for prods into the filenames of said prods that have been downloaded, and then generating an HTML link list of those filenames in a specified folder that, when clicked, open onto their pages on Pouet.net.

For example, I take this prod:

https://www.pouet.net/prod.php?which=9597

and then download the file for it and then embed the code 9597 at the very end of the filename, like so:

Code:ALCATRAZ museum @9597.dms


And when I run a program that I wrote to generate the links, the above example is converted into this:

Code:<li><a href="https://www.pouet.net/prod.php?which=9597">ALCATRAZ museum @9597</a>


The idea is that, with a whole html page filled with links like this derived from the existing files, as a backup, they can ease re-downloading if the original files are lost, or they can be used to look up extra information on the prod, as you would normally view prod pages for comments, videos, other links, and so forth.

I have already written the program to generate the HTML, but it is a rough version and can't be re-configured yet without recompiling in Free Pascal/Lazarus IDE. I'm also looking to remove the @ next to the prod number if it causes problems in the filenames. However, I think it shows a lot of promise.

What do you think?
added on the 2018-05-02 20:19:42 by Foebane72 Foebane72
wat
added on the 2018-05-02 21:42:01 by groepaz groepaz
Sounds like you're further overcomplicating your naming scheme
added on the 2018-05-02 22:30:22 by lynn lynn
Quote:
Sounds like you're further overcomplicating your naming scheme


I quite enjoy this sort of thing, and I have the time. :)
added on the 2018-05-02 22:55:50 by Foebane72 Foebane72
This would actually be pretty helpful in the event of a catastrophic loss of download links.
added on the 2018-05-02 23:12:10 by fizzer fizzer
Just use wget.exe to mirror a pouet URL on ur local drive and pick the downloaded binary from there (allow download from 3rd party domain names, filter URLs that link to users profiles for example). Plus you have the screenshot and comments and others links too after that.
added on the 2018-05-02 23:57:43 by Salinga Salinga
Quote:
Just use wget.exe to mirror a pouet URL on ur local drive and pick the downloaded binary from there (allow download from 3rd party domain names, filter URLs that link to users profiles for example). Plus you have the screenshot and comments and others links too after that.


I did not know about that. I have no experience at all of this app. I'll look into it sometime.
added on the 2018-05-03 00:33:38 by Foebane72 Foebane72
Also, I designed my HTML listing program so that even if a filename didn't have a @ sign with a prod number following it, it still produces a list of the files within the folder - they just won't be links.
added on the 2018-05-03 00:37:09 by Foebane72 Foebane72
I want a nodejs system where i can write pouet install author="Hulk Hogan" platform="all" and all prods by Hulk Hogan is installed onto my HDD.
added on the 2018-05-03 00:53:42 by Zplex Zplex
I realise that it would take time to revisit all the prod pages for demos someone might have files for and type them in, so I could always share some HTML files I generated yesterday?
added on the 2018-05-03 10:30:12 by Foebane72 Foebane72
fwiw Conduit can do this for you - it doesn't support prod IDs yet but it can be easily added.
added on the 2018-05-03 11:50:21 by Gargaj Gargaj
Quote:
fwiw Conduit can do this for you - it doesn't support prod IDs yet but it can be easily added.


I've just tried this very useful tool, it makes running PC demos instantly a breeze, which comes in very useful as I've always found it fiddly to download, extract, and then hunt for the exe, but this toll by Gargaj automates the process! I still have a HTML page of links to my favourite PC demos from a while ago, but this will make it easier to run them and explore other prods by the groups, etc.

I tried downloading a couple of Amiga demos and they did, although I would imagine the logistics of running an Amiga demo with the multiple disk image files, configurations and (for a lot of them) the requirement for HD installation, not to mention WHDLoad, would make it rather difficult for Gargaj to implement. If he already has, I stand corrected.

Most of the demo files I have are for Amiga and I've already determined what I think are the best configurations for them, as well as having a means of installing them onto my HDF file immediately, so that side has already been done, and it's this aspect which has made me do the above.

However, for Win/DOS demos, this is brilliant, and I look forward to easily exploring more of them, now the fiddly business is taken care of.

You're a GENIUS, Gargaj!
added on the 2018-05-03 13:57:17 by Foebane72 Foebane72
Anyway, back to my program, "PouetLister" - If anyone's interested, I'll post the source code this evening, as it's not yet configurable except by altering said code before compiling.

In the meantime, here's some examples of what it can do:
https://drive.google.com/open?id=1wQ27YV-1uho6hKY8eZTSc3g4F4ziXj2o
https://drive.google.com/open?id=1m6JHXO-NOBn45x4L3cfKOp2ged67Ievo
https://drive.google.com/open?id=1xwOenNu7YU2G5M4TF3GCle1Hg52Rv3GJ
added on the 2018-05-05 09:48:28 by Foebane72 Foebane72
like a dog with a mirror
added on the 2018-05-05 10:06:14 by havoc havoc
Quote:
like a dog with a mirror


With all these insults, I wonder why I bother to help anybody, sometimes.
added on the 2018-05-05 10:19:04 by Foebane72 Foebane72
Quote:
With all these insults, I wonder why I bother to help anybody, sometimes.


you are your own master - if you think it's useful what you do, just do it and don't care what other people say .. if Linus Torvalds had taken care of what others say, Linux wouldn't exist today.
added on the 2018-05-05 11:22:25 by Asato Asato
kun en araber tar et spejl med i krig!
added on the 2018-05-05 11:43:13 by farfar farfar
PouetLister v1.0 released!

https://drive.google.com/open?id=1qKC8LfNcIA7hSkrJwFiZOGLkh96B_zNV

Feedback/suggestions welcome!
added on the 2018-05-05 16:27:05 by Foebane72 Foebane72
Bugfix v1.0 release: https://drive.google.com/open?id=1nggyCko0BPkQnXM6LQFeX9ERcQrRGqS_

Old link no longer works.
added on the 2018-05-05 20:13:42 by Foebane72 Foebane72
Maybe put it on Github? It's a bit more futureproof than Google Drive.
added on the 2018-05-05 23:12:06 by Gargaj Gargaj
Quote:
Maybe put it on Github? It's a bit more futureproof than Google Drive.


Yep, I'll look into it. I don't like having to post a totally different link because I updated the file. :)
added on the 2018-05-06 00:10:53 by Foebane72 Foebane72
I've had a look at Github, and I don't think it would be suitable for me, not in this instance.

Perhaps I should clarify: the above links are to an executable, not source code. I upgraded the program yesterday to make it fully configurable, so no recompiling is needed. I'd still like to tidy up the code still further so there'll most likely be another update today, but I'll have to find somewhere that will let me use permalinks to the file itself.
added on the 2018-05-06 09:48:52 by Foebane72 Foebane72
Why not release the source too? Doesn't feel that complicated that you'd have anything to hide :)
added on the 2018-05-06 11:12:02 by Gargaj Gargaj
I put a Copyright message in the title of the source code, but that could open up a whole can of worms as to whether it really should apply in this instance. I've just always copyrighted my code, that's all. Then again, if it's for the Demoscene primarily, should I remove it? I don't honestly see copyright messages in demos.
added on the 2018-05-06 12:06:59 by Foebane72 Foebane72
In fairness, is it worth thinking about? Is it complicated enough for attribution to be a worry? :)
added on the 2018-05-06 12:47:28 by Gargaj Gargaj

login