Author Topic: Suggestion: Download filter  (Read 5042 times)

Offline Wally

  • Newbie
  • *
  • Posts: 24
    • View Profile
Suggestion: Download filter
« on: May 20, 2013, 12:32:25 »
I don't know how are the underlying mod files organized, so maybe what I'm proposing is not possible. I suppose something like this has arisen before, but didn't find anything in this topic.

Amiga has mod extension before file name while PC and others usually have mod extension after the file name. Would it be possible to code/modify a download filter which lets choose the placement of the extension before/after the file name? (I guess the answer is no if files are gzipped and not compressed on the fly).


Offline Axxy

  • Sr. Member
  • ****
  • Posts: 463
    • View Profile
Re: Suggestion: Download filter
« Reply #1 on: May 20, 2013, 12:44:22 »
This doesn't bother me that much anymore, but a good file renamer takes care of this after I download a few, so that helps... :)

Offline Asle

  • Administrator
  • Hero Member
  • *****
  • Posts: 1 032
    • View Profile
    • Amiga Music Preservation
Re: Suggestion: Download filter
« Reply #2 on: May 20, 2013, 19:07:35 »
This is an old topic, but, to make it short, the extension stuff is an Amiga legacy, where extension (if any) came first.
I know it's not really useful in today's systems, but ... see, Exotica still does it :)
Anyway, this is not likely to change any time soon, unfortunately. Far too much work to achieve that.

Offline Independent

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Suggestion: Download filter
« Reply #3 on: May 21, 2013, 16:26:54 »
A good renamer is ReNamer from this website.

http://www.den4b.com/?x=downloads&product=renamer

Easy to use and very quick :)

Offline swirlythingy

  • Full Member
  • ***
  • Posts: 109
  • Bad blood? What bad blood?
    • View Profile
    • Kingfisher Corner
Re: Suggestion: Download filter
« Reply #4 on: May 23, 2013, 20:09:53 »
I quickly got very fed up with AMP's weird naming scheme and use of GZip compression (which is not impossible but definitely irksome to unpack on RISC OS).  The issue was compounded by NetSurf not converting %hex entities in URLs to proper characters, which affected most module names (any with a space in, for a start).

After downloading my first few modules, I wrote an entire helper program to claim the GZip filetype when I double-click on it.  This automatically decompresses any such file using a port of gzip that I found.  If it detects that the file is located beneath my AMP downloads directory, it calculates a correct, unmangled filename for the decompressed output - this consists of substituting the correct non-alphanumeric characters wherever possible, removing the "/gz" extension and removing the Amiga pre-extension (prepen-sion?).  It also attempts to set the filetype to an appropriate tracker format based on the prefix (RO doesn't do filename extensions).  Finally, after decompression, it deletes the original zipped file.

I still haven't figured out how to get VLC on Linux to play with them nicely.  I strongly suspect a similar rigamarole is in order.