Author |
Message |
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Quoting Addicted2DVD: Quote: Quoting SH84:
Quote: Do you have the html file there? You need a file with the EPG data there. Eg. epg-4010232008251.5.html for my Simpsons Profile, 4010232008251 is the UPC and .5 the country-indicator for a German profile.
I see... i didn't have epg-upccode that must be it... let me try. That did it! | | | Pete |
|
Registered: March 13, 2007 | Reputation: | Posts: 922 |
| Posted: | | | | Quoting Addicted2DVD: Quote: only problem with that is that whenever you click to clean out your unused cover images won't it also remove the epg file? That's why I have an extra directory . | | | Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de |
|
Registered: March 13, 2007 | Reputation: | Posts: 922 |
| Posted: | | | | Quoting Addicted2DVD: Quote: Quoting Addicted2DVD:
Quote: Quoting SH84:
Quote: Do you have the html file there? You need a file with the EPG data there. Eg. epg-4010232008251.5.html for my Simpsons Profile, 4010232008251 is the UPC and .5 the country-indicator for a German profile.
I see... i didn't have epg-upccode that must be it... let me try.
That did it! Glad to hear. The next step could be an Internet archive with all EPGs and than you could add a page for all profiles without one. | | | Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting Addicted2DVD: Quote: only problem with that is that whenever you click to clean out your unused cover images won't it also remove the epg file? No, not IN the images folder itself, just in the same subfolder you have now \Images\epg That is why my var statement still has two "epg" in it: var epg = (DP_ProgramPathImages + "epg/epg-" + DP_UPC + ".html"); the first one for the subfolder, the second one the beginning of the filename (although I won't be using that). In that location they never got wiped away when I was using 2.5 and I don't expect that to happen now... | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting SH84: Quote: The next step could be an Internet archive with all EPGs and than you could add a page for all profiles without one. You mean like this? (also found in Pete's signature) Of course, they are not named with the UPC there... Or did you mean an online archive which could be linked to...? Oh, the bandwidth... | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| |
Registered: March 13, 2007 | Reputation: | Posts: 922 |
| Posted: | | | | Yes I know this site, but you have to download the zip and edit the EPGs (most of them) ... | | | Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | yeah... I find I edit a lot of them anyway... not everyone keeps them in the same folder.. and plus tastes differ so some of them I edit the content slightly as well. but that is to be expected... different tastes... different locations for files. | | | Pete |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | SH84, do you know I could test if a file was found?
I want to check that first and then display "No EPG found." rather than the "This program cannot display the webpage" page.
I tried testing for epg='' and epg=null, but that didn't work. I could google for it, but you seem to know this stuff... | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Hmmmm... just a small idea... and don't know if this is even possible. For the ones profiles you don't have yet/or movie profiles where there couldn't be one... instead of the This Page Can Not Be Displayed error... would it at all me possible to have some sort of default... something real simple like an html that says No Episode Guide Currently Available
Thoughts?... is it even possible to do? | | | Pete |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | Quoting ya_shin: Quote: SH84, do you know I could test if a file was found?
I want to check that first and then display "No EPG found." rather than the "This program cannot display the webpage" page.
I tried testing for epg='' and epg=null, but that didn't work. I could google for it, but you seem to know this stuff... LOL... guess great minds think alike! | | | Pete |
|
Registered: March 13, 2007 | Reputation: | Posts: 922 |
| |
Registered: March 13, 2007 | Reputation: | Posts: 922 |
| Posted: | | | | Okay, I've found a partial solution: Quote: <HTML> <HEAD> <SCRIPT TYPE="text/javascript"> <!-- <DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False"> //-->
function showEPG() { var epg = ("C:/Dokumente und Einstellungen/Thomas/Anwendungsdaten/DVD Profiler/epg/epg-" + DP_UPC + ".html"); var notes = DP_Notes.indexOf("epg=1"); if (notes != -1) { window.location.href= epg ; } else { document.write("no EPG!"); } } </SCRIPT> </HEAD> <BODY onload="showEPG()"> </BODY> </HTML> How does it work?It looks for the string "epg=1" in the notes-field. If the string is not found, it displays "no EPG!" (but it could be changed to e.g. an HTML site with more text). If there is such a string in the notes field, it changes to the EPG site... PS: If you have HTML notes, you can use "<epg=1>", it does the same, but is invisible. | | | Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de |
|
Registered: March 13, 2007 | Reputation: | Posts: 17,334 |
| Posted: | | | | ok... I tried this... no good for my purposes... because as I do the epg field... I remove it from notes so it wouldn't exist any more and it does not let my epg field show the epg any longer. Or am I misunderstanding what to do here? all I know is all of them got no epg in the field now. | | | Pete |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting SH84: Quote: Okay, I've found a partial solution: Well, it works. This is a good and easy solution. Edit: Removed my useless thought. | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) | | | Last edited: by nuoyaxin |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting Addicted2DVD: Quote: ok... I tried this... no good for my purposes... because as I do the epg field... I remove it from notes so it wouldn't exist any more and it does not let my epg field show the epg any longer.
Or am I misunderstanding what to do here? all I know is all of them got no epg in the field now. All you are supposed to leave in the Notes field is Quote: <epg=1> (The brackets will make it invisible.) Basically you could write whatever you want in teh brackets and then replace the part in the indexOf accordingly. The EPG itself can be removed from the Notes. | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
|