Author |
Message |
Registered: March 13, 2007 | Reputation: | Posts: 467 |
| Posted: | | | | ajm,
to do this, the best is to check if the file UPC.html exist and if yes, load the file and if not, view a message. The problem is with Javascript, we don't have a function to check a file. To do this, we must use an ActiveX object but DVD Profiler doesn't allow it so we can do like this because when I use the preview function of HTML Window, I have a message box ask me if I want to accept the ActiveX or not but when I'm in the main window and go to the EPG tab, I don't have this question and have a white window. Maybe it's possible to use Java class to do this (like Mithirandir do with is skin but it's more complicate and imply setup in the Java policies tools...). If someone have a solution to this, I'm taker.
Maybe there is a function to "intercept" the 404 error and personalize the message but I don't know if it's possible and if yes, how to do this. | | | Regards Cyrille |
|
Registered: March 15, 2007 | Posts: 116 |
| Posted: | | | | 2 days no forum and this topic grows by 2 pages Thx for the help Achim. Works like a charm. If you're ever in Belgium, a nice cold Belgian Beer is awaiting you my friend. | | | Greetz, Marc Castermans
|
|
Registered: March 13, 2007 | Posts: 350 |
| Posted: | | | | I was just curious why people wanted to remove the locale-indicator from the ID? | | | -fred |
|
Registered: March 13, 2007 | Posts: 1,242 |
| Posted: | | | | Quoting FredLooks: Quote: I was just curious why people wanted to remove the locale-indicator from the ID? Well for me too have a file listed as 5030936010047 for 24 season 1 instead of 5030936010047.4 for 24 season 1 doesn't seem much but if these files where made available to everybody regardless of location then no editing need be done to make it work. If all you had to do was look for a file with 1 simple ean / upc, for me I'm in region 2 (UK) but because most of region 2 DVD's are also region 4 enabled, if you (for this example where Australian) had produced a file for 24 season 2 5030936013031 but had put your location marker at the end of it, I would not be able to share your file without modification (all be it small) If this makes sense. Steve |
|
Registered: March 13, 2007 | Posts: 525 |
| Posted: | | | | I've done a quick hack to phpdvdprofiler to support it. http://www.dvdaholic.me.uk/phpdvdprofiler_v3/epg.php I've only changed a few of my profiles to use the new method. NCIS S2, Numbers S2, Charmed S6, Sugar Rush, Sugar Rush S2. Need to add the code to do magic with paths and background colours. Took me longer to get dvdprofiler to display them, than phpdvdprofiler | | | Home of the phpDVDProfiler forums |
|
Registered: March 13, 2007 | Posts: 350 |
| Posted: | | | | No, that's about what I thought ... it doesn't address the issue with multiple UPC's for the same "program" (eg. smallville season 5 on dvd and hd dvd), but it certainly makes sense for the reason you cited. I remember occasionally adding a dvd by upc in version 2.4 and getting two entirely different titles for two localities. I wonder if this was data that had somehow gotten corrupted in the master db, or if companies do occasionally re-use UPCs in different locales for different titles (from the point of inventory control, I would think that was a bad idea ) | | | -fred |
|
Registered: March 13, 2007 | Posts: 1,242 |
| Posted: | | | | Good point, it might be easier in the long run to hold a database of these files in html format but listed under the series name / season indicator similar to how Pete is doing it now (but html instead of txt) as we will all be using html for the data would save too much messing around for somebody not too sure what to do to change it (ie a complete novice (I know a few)), with only a simple rename of the file to the UPC/EAN of the user.
Once the code is run and executed the code it self finds the correct file.
Steve |
|
Registered: March 13, 2007 | Posts: 55 |
| Posted: | | | | I don't use the EPGs, but I strongly suggest you lot take the following approach to this.
1) Have the main HTML code say 'attempting to load EPG' 2a) Have some JS code attempt to load the EPG page into a hidden iframe 2b) Have a function called after a 1-2 second timeout check the address of the iframe. 3a) If the address matches that of the EPG page then you know the page exists can either display the iframe, or redirect the page to the EPG page. 3b) If the addresses aren't the same, change the 'attempting to load EPG' text to say 'EPG not available'. | | | Doug
DougWeb.org - my personal site. TWSNBN.com Unofficial DVD Profiler Resource Centre - serving hundreds of users every month! DVD Profiler Wiki | | | Last edited: by dvdoug |
|
Registered: March 13, 2007 | Reputation: | Posts: 3,436 |
| Posted: | | | | Quoting ajm: Quote: I've done a quick hack to phpdvdprofiler to support it. Andy, looks great! Just what I envisioned when I added the Feature request in the phpdvdprofiler forum. | | | Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan. Registered: May 29, 2000 (at InterVocative) |
|
Registered: March 13, 2007 | Reputation: | Posts: 1,911 |
| Posted: | | | | I'm using this
<HTML> <HEAD> <SCRIPT TYPE="text/javascript">
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="False" IncludeCast="False" IncludeCrew="False">
function showEPG() { var i; var bool = 0; var pos_dot = DP_UPC.lastIndexOf("."); var upc = DP_UPC.substring(0,pos_dot); var epg = ("C:/Documents and Settings/Erik/Application Data/DVD Profiler/epg/epg-" + DP_UPC + ".html");
for (i=0; i < DP_Tags.length; i++) { if (DP_Tags[i] == "TVEPG") { bool = 1; } } if (bool == 1) { window.location.href= epg ; } else { document.write("Episode guide not available!"); } } </SCRIPT> <style type="text/css"> body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } </style> </HEAD> <BODY onload="showEPG()"> </BODY> </HTML>
And notice that I get script error's on some DVD's (non tv) and TV shows on DVD. it's purely random. Any ideas why? | | | Signature banned: Reason out of date... |
|
Registered: March 13, 2007 | Posts: 350 |
| Posted: | | | | You don't have any double-quotes in your disc location or slots fields, do you? I think that those can get mis-quoted in the DP_HEADERS ... when you encounter an error, try to reight-click on the epg window and select "View Source". that file will likely have the error in it ... | | | -fred |
|
Registered: March 13, 2007 | Reputation: | Posts: 1,911 |
| Posted: | | | | It seems to happen when there is something in the notes field. I'll have to check on my non-tv profiles that give the error. | | | Signature banned: Reason out of date... |
|
Registered: March 13, 2007 | Posts: 525 |
| Posted: | | | | Quoting ya_shin: Quote: If you use DP_ProgramPathImages you could place the EPGs in a subfolder to the Images folder.
I think it should be: var epg = (DP_ProgramPathImages + "epg/epg-" + DP_UPC + ".html");
A location I'd personally prefer, as it will be included in my backups.
I was reading this and thinking it would be included in the dvdprofiler backup. Unless I did something wrong it doesn't appear to be the case. What a shame. | | | Home of the phpDVDProfiler forums |
|
Registered: March 13, 2007 | Posts: 793 |
| Posted: | | | | Quoting ajm: Quote: I was reading this and thinking it would be included in the dvdprofiler backup. Unless I did something wrong it doesn't appear to be the case. What a shame. As I said earlier, I still don't understand why the layouts, translation, plugins, reports and flag sets files are not included in the backup. I hate having to remember to backup those folders manually. They should be included in the backup function, or at least be made into selectable checkboxes. It's not like they would add all that much space, especially againt 2000+ images |
|
Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | Quoting FredLooks: Quote: You don't have any double-quotes in your disc location or slots fields, do you? I think that those can get mis-quoted in the DP_HEADERS ... I can confirm that behavior, I've tested it. I've also tested putting double/single quotes in most of the fields that get written to the javascript via HEADER_VARS. Location and Slot seem to be the only fields that are not encoded during HEADER_VAR write time [" -> \"]. Ken needs to fix that! |
|
Registered: March 13, 2007 | Posts: 646 |
| Posted: | | | | Quoting Cyrille: Quote: ajm,
to do this, the best is to check if the file UPC.html exist and if yes, load the file and if not, view a message. The problem is with Javascript, we don't have a function to check a file. To do this, we must use an ActiveX object but DVD Profiler doesn't allow it so we can do like this because when I use the preview function of HTML Window, I have a message box ask me if I want to accept the ActiveX or not but when I'm in the main window and go to the EPG tab, I don't have this question and have a white window. Maybe it's possible to use Java class to do this (like Mithirandir do with is skin but it's more complicate and imply setup in the Java policies tools...). If someone have a solution to this, I'm taker.
Maybe there is a function to "intercept" the 404 error and personalize the message but I don't know if it's possible and if yes, how to do this. I tested the ActiveX route, but it requires a confirmation of the user between profile switches. Loading a Java class takes too long for anyone that wanders up and down in the collection list, me thinks. |
|