getvod icon indicating copy to clipboard operation
getvod copied to clipboard

File Names cleanup

Open ashipaek0 opened this issue 1 year ago • 2 comments

Thank you for getvod. its a life saver and much appreciated.

Please could you tell me how to get sanitized file names. When i run getvod i end up with file names that look like this:

EN__National_Lampoon_s_European_Vacation_(1985)EN__National_Lampoon_s_European_Vacation_(1985).strm

Whilst i do not mind the underscores (Unix file names and all), i would very much like to remove the EN__ prefix

I have tried adding that to the

$lefttrim = "EN__"; and even the $remove[] = "EN__";

but it appears that only produces :

EN_-National_Lampoon_s_European_Vacation(1985).strm.

Kindly help me with directions on how to get my files to look like:

National_Lampoon_s_European_Vacation_(1985).strm

ashipaek0 avatar Mar 12 '24 13:03 ashipaek0

This is probably the issue -

if ($lefttrim != null) { // leave as null and nothing gets removed

change to:

if ($lefttrim != "") { // leave as null and nothing gets removed

The file underscore is here:

$file = str_replace(' ', '_', $key->tvg_name);

Just change to:

// $file = str_replace(' ', '_', $key->tvg_name);

Some like the underscore because it's easier to deal with in Windows.

-Jules

mwlistscom avatar Apr 30 '24 16:04 mwlistscom

If not I'll repro and fix it this weekend.

mwlistscom avatar Apr 30 '24 16:04 mwlistscom

We released a new Repository that works on multiple OS that's easier to maintian.

https://github.com/mwlistscom/GetSTRM/releases/tag/v1.0.2

There are no plans to update GetVOD going forward

mwlistscom avatar Jul 09 '24 17:07 mwlistscom