Page 1 of 1

Importing An External Subtitle File

Posted: 2005-10-18 05:34:44
by trekkie
Hi,

Lots of us use external subtitle file to watch a movie. Usually the subtitle file is downloaded from web-sites.

I would like to suggest a new feature of importing that external file from a web site , it would require a new function:
GetExternalFile(Address:String) ( similar to GetPicture).

The imported file would be linked to a new Subtitle File Link field
( similar to a suggested new file Link field ) and can be stored in a seperate directory (which can be under the Main AMC directory or not - you may add its setting in the preferences ) .

This will also allow for a New Area for script writers .
Scripts can be written to search subtitles on the net ( There are many sites in different languages ) and get the desired file ,thus automating a chore which many of us do manually.


Thanks

Posted: 2005-10-18 08:03:20
by antp
If the downloaded file is a text file, it is already possible with GetPage, TStringList, and few other functions/constants.
For a zip file for example, I would also have to add a possibility to expand the zip file.

Importing An External Subtitle File

Posted: 2005-10-18 15:19:52
by trekkie
Usually the files are either zip or rar files.

I think uncompressing it would be a nice addition :) but not a necessity.

BTW
i tried GetPage for a zip/rar file ,not working :( .It seems the files are
somehow truncated

Posted: 2005-10-18 15:59:25
by antp
GetPage handles the downloaded file as a text string, so it won't work at all with non-text files (zip, images, etc.)