Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1 2 3 ...9  Previous   Next
Announcing: The TV Episode Guide Loader
Author Message
DVD Profiler Unlimited Registrantxyrano
41215.reg 70320.urk
Registered: March 13, 2007
Sweden Posts: 646
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Greetings all,

Last Friday (2/4-07) I came across a thread on this forum where people where and still are discussing various methods to load a TV Episode Guide (EPG) into DVD Profilers HTML Windows feature. I was quick to try a solution, but saw that it may be need for a script versatile enough to accommodate most of those methods used, out there.

So I started on my version of a EPG loader which became (as I would like to call it): The TV Episode Guide Loader.

The TV Episode Guide Loader
The TV Episode Guide Loader (EPGL) is configurable to better suite your particular way.
It:
- can listen for <epg=1> in notes field (used in DVD Profiler v2.4/2.5).
- can use the UPC as filename from the profile (incl/excl locality).
- can use a filename that may have been defined in the notes field.
- can load a file based on a TAG setting with UPC as the file to get.
- can listen for 404 errors (file not found), and gives some feedback on the error.
- more...

Code and Configuration:
The TV Episode Guide Loader - Tutorial (incl. EPGL v1.2.1 ) 70516.

v1.0 vs v1.1 Update
- Fixed excludeLocality return value.
- Fixed tryLoadEPGAnyway option (did nothing in 1.0)
- Added link to the numeric titles @ epg.source
- Changed innerHTML to innerText
- Fixed access/permission denied issues for IE7 users
- Opened up most options... so "something is happening"

v1.2 Update
- Added Tag support for Link section.

v1.2.1 update
- Removed most comments, please see the TV Episode Guide Loader - Tutorial.
- Rearranged variables after priority (Configuration block).

Enjoy! 

Wait!
Don't forget to vote...
 Last edited: by xyrano
DVD Profiler Desktop and Mobile RegistrantStar Contributorajm
dvd-aholic
Registered: March 13, 2007
United Kingdom Posts: 525
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Wow wow wow.

After fixing my typo's I got this working a treat. Thanks for that.

Home of the phpDVDProfiler forums
 Last edited: by ajm
DVD Profiler Unlimited RegistrantRossRoy
Registered: March 13, 2007
Posts: 793
Posted:
PM this userDirect link to this postReply with quote
Wow! That's great. Thanks for that!
DVD Profiler Unlimited Registrantxyrano
41215.reg 70320.urk
Registered: March 13, 2007
Sweden Posts: 646
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Glad you boys like it! 
DVD Profiler Unlimited RegistrantRossRoy
Registered: March 13, 2007
Posts: 793
Posted:
PM this userDirect link to this postReply with quote
Ok, I need a little help here.

I've configured the script to check the notes if there is a <epg=1> tag and use the UPC as filename with country code.

Works like a charm for when there is no <epg=1> tag and when there is a <epg=1> tag and the file exist.

The problem is if the file doesn't exist (I know, it shouldn't happen, but I have some EPG that I added at home, and as you know, Profiler doesn't put them in the backup, so I don't have them here at work at the moment), I get 4 debug errors asking me if I want to debug. How can I avoid that? Is it even possible?

Nevermind, I fixed it. I just disabled script debugging right into Internet Explorer.
 Last edited: by RossRoy
DVD Profiler Desktop and Mobile RegistrantStar Contributorajm
dvd-aholic
Registered: March 13, 2007
United Kingdom Posts: 525
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Just found a tiny little problem. Well omission. On the alphabetical list of links to the epg at the bottom you've forgotten the list to the numeric titles. The link has and underscore instead of a letter.

Home of the phpDVDProfiler forums
DVD Profiler Desktop and Mobile RegistrantMarcCastermans
Registered: March 15, 2007
Posts: 116
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Doesn't work over here...

Settings:
Quote:

var pathToEpGStorage = DP_ProgramPathDatabase + "Images/epg/";
var fileNamePrefix = "epg-";
var fileNameSuffix = ".html";
var useTheUPCasFileName = true;
var excludeLocality = true;
var errUPCFilename = "Get UPC filename, but no file. 404";
var useNotes = false;
var useNotesFilename = false;
var errNoteFilename = "Notes say Filename, but no file. 404";
var tagName = "7: Quick Find/TV Series/EPG";
var useTagName = false;
var errTagMessage = "Tag say EPG, but no file. 404";
var useTheIFrame = true;
var errIFrameMessage = "No TV Episode Guide available!";
var useTheFooter = true;
var tryLoadEPGAnyway = false;
var epgURLSource = "epg.dvdaholic.me.uk";
var epgURLSourceSearch = "?letter=";


I just want the window to link to my file in the <databasefolder>\Images\epg\ folder. I don't want to use notes to link.
My filename is epg-8711875961830.html and I also tried epg-8-711875-961830.html

What do I do wrong?
Greetz,
Marc Castermans

 Last edited: by MarcCastermans
DVD Profiler Unlimited RegistrantStar ContributorAddicted2DVD
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 17,334
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
I attempted to set this up... but being completely new to this type of code... I was completely lost trying to set it up.
Pete
DVD Profiler Unlimited Registrantnuoyaxin
prev. known as ya_shin
Registered: March 13, 2007
Reputation: High Rating
Taiwan, Province of China Posts: 3,436
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting MarcCastermans:
Quote:
I just want the window to link to my file in the <databasefolder>\Images\epg\ folder. I don't want to use notes to link.
My filename is epg-8711875961830.html and I also tried epg-8-711875-961830.html

What do I do wrong?

Most the stuff seems set up alright...

Only one I spotted, is
var tagName = "7: Quick Find/TV Series/EPG";
which, I guess, you would have to set to the Tag you are using.


Other than that, the basics worked for me instantly, right after copying and pasting the code. I then made some adjustents, trying to get an error message, (like the 404, file not found), but the window would always show the Title. For files that don't exist it shows "Loading file... xxxxxxxx.html" but no error message either.
Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan.
Registered: May 29, 2000 (at InterVocative)
DVD Profiler Desktop and Mobile RegistrantMarcCastermans
Registered: March 15, 2007
Posts: 116
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting ya_shin:
Quote:

var tagName = "7: Quick Find/TV Series/EPG";
which, I guess, you would have to set to the Tag you are using.


I don't use Tags Achim. Will I have to do that?
Greetz,
Marc Castermans

DVD Profiler Desktop and Mobile RegistrantStar Contributorajm
dvd-aholic
Registered: March 13, 2007
United Kingdom Posts: 525
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I think you either need 'epg=1' in the notes, or to set a tag. I called my tag 'Has EPG'.  A lot shorter than the default.

Also, some of the documented 'default' values aren't actually the default. Check the variables which are set to true/false to ensure they are enabled/disabled for what  you want.

Home of the phpDVDProfiler forums
DVD Profiler Unlimited RegistrantRossRoy
Registered: March 13, 2007
Posts: 793
Posted:
PM this userDirect link to this postReply with quote
You can also use the [epgfn=CharmedS1] in the notes field by itself. That's what I use.

Ya_Shin:

Are you using IE7 by any chance? I think the script check for the error page to be dnserror.htm, but on IE7, this was changed, so the script doesn't know it failed.
 Last edited: by RossRoy
DVD Profiler Desktop and Mobile RegistrantMarcCastermans
Registered: March 15, 2007
Posts: 116
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting ajm:
Quote:
I think you either need 'epg=1' in the notes, or to set a tag. I called my tag 'Has EPG'.  A lot shorter than the default.

Also, some of the documented 'default' values aren't actually the default. Check the variables which are set to true/false to ensure they are enabled/disabled for what  you want.


Works like a charm now. I also use the HasEpg tag.

2 questions
1. strange thing is that the script looks for epg-871187596.html iso epg-8711875961830.html.
2. I set the variable for the footer false but the little blue bar stays visible though empty.
Greetz,
Marc Castermans

 Last edited: by MarcCastermans
DVD Profiler Unlimited Registrantnuoyaxin
prev. known as ya_shin
Registered: March 13, 2007
Reputation: High Rating
Taiwan, Province of China Posts: 3,436
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting RossRoy:
Quote:
Are you using IE7 by any chance? I think the script check for the error page to be dnserror.htm, but on IE7, this was changed, so the script doesn't know it failed.

That must be it then... Thanks for the heads up.

This script is great for people who are not sure what they need (sort of). Personally I will stick to the "original", as it's much shorter and does what I need...
Achim [諾亞信; Ya-Shin//Nuo], a German in Taiwan.
Registered: May 29, 2000 (at InterVocative)
DVD Profiler Desktop and Mobile RegistrantStar ContributorNewEnglander
Registered: 11/13/2003
Registered: March 13, 2007
Reputation: High Rating
United States Posts: 1,911
Posted:
PM this userEmail this userView this user's DVD collectionDirect link to this postReply with quote
Quoting Addicted2DVD:
Quote:
I attempted to set this up... but being completely new to this type of code... I was completely lost trying to set it up.


I felt the same way, so I gave up! 
Signature banned: Reason out of date...
DVD Profiler Unlimited Registrantxyrano
41215.reg 70320.urk
Registered: March 13, 2007
Sweden Posts: 646
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Script has been updated, please see the first post.

The update address most of the issues that you've posted about, sorry for any inconvenience

For IE7 users and those that have equivalent security setting of the IE7 browser set.
- I've spent the last two days trying to find a solution for testing the content in a iframe (for IE7), but was forced (in the end) to just check if it could access the (location.href) object. If it can't it will show the iframe (Page cannot be displayed) and a red text string on-top of it. Just so you'll know.    Yea, I know, not 100% perfect, but hey... if you like to choose between using notes field/tags on the fly... 

If you are using the script, please grab the update.

Quoting Addicted2DVD, pplchamp:
Quote:
I attempted to set this up... but being completely new to this type of code... I was completely lost trying to set it up.

Can I help?

Provided that (pathToEpGStorage, fileNamePrefix, fileNameSuffix, useTheUPCasFileName = true, excludeLocality) are properly set; These three varaibles is the ones that tell the script "There is a EPG for this profile, please proceed!".
var useNotes = false;
var useNotesFilename = false;
var useTagName = false;
At least one of them must be set to true!

if useNotes is true it checks for "<epg=1>" in Notes.
if useNotesFilename is true it checks for "<![epgfn=?]>" in Notes (disregarding useNotes and useTagName).
if useTagName is true it checks for tagName.
if all of them is false, then nada, zip, ziltsh, zero, niet  in which case you only se "Title: xxxxxxx".

I'd like to say thanks to you whom helped out in all of this. Thanks

/ x
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1 2 3 ...9  Previous   Next