dear mod sorry if my post mention about copyright content

i was wondering is it possible we can get original video name after downloading using program or script maybe?
couple days ago i was setting up schedule downloader for tv program ,the video file should be like this


the problem is maybe site were using some kind of php script or maybe my downloader apps who auto rename the downloaded video into some random string into something like this

[Attachment 44382 - Click to enlarge]

so i need to rename them in sequence according to the episode, anyone have a suggestion what tool should i used?