NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 40 41 42 43 44 … 47 Next »
TV.COM Direct Link to Episode ( code inside )

 
  • 0 Vote(s) - 0 Average
TV.COM Direct Link to Episode ( code inside )
dejunai
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Dec 2006
#1
2007-01-10, 02:35 PM
I am very new here...
I am not certain where best to make this suggestion....
I am a very grateful user of GB-PVR, and have been using the EWA...

From the very start, I was never fond of the NetFlix link...
I realize it is in the original WebAdmin as well...

So I chose to change the code a bit...
I hope no one takes offense, But it is very affective,
and I wanted to share it with the community...

Using a simple text editor, I changed line 290 of ProgrammeDisplay.cs
It previously read...
Code:
Line290:
description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=" + Server.UrlEncode(title) + "\" target=\"_blank\">Netflix</a>)" + description;

I have "//" remarked that line out and added:
Code:
description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(subtitle) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)" + description;

The mechanics are simple...
The Title of the Show, and It's Episodic Subtitle are prepared for URL,
They are submitted to Google, with the restriction to only Search TV.COM,
And finally, It uses the "I'm Feeling Lucky" Submit Button, to directly link
to the most relevant hit...

I'm hesitant to say it is 100%, But After several days of just basic use,
It has yet to Misdirect me...
I have always arrived at the proper Episode page...

For the curious,
I used Google specifically because TV.COM's search engine
Does NOT search by Episode Title.

Granted, this will not do much for TV broadcast in Non-English.
TV.COM is obviously an American WebSite catering to American TV.
Tho there is a great deal of British and Canadian TV...

The most immediate thing it did for me, was help my wife and I determine,
If we have seen episodes before, ( Law & Orders [all flavors] = Her;
Outer Limits and Twilight Zone [old and new] = Me )...
The longer descriptions and viewer ratings are very helpful particularly
for Anthology type Shows.

I hope someone finds this useful...
Thanks Again to GB-PVR, and the EWA Team...
-Dejunai
dejunai
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Dec 2006
#2
2007-01-10, 07:57 PM
After posting the above this morning,
I considered the fact that IMDB also hosts Episode Data per TV Show...

So I went in and further hacked at the code...
The result is below; it is NOT optimized...

Code:
Starting on Line288:
            if (externallinks && guideParams.showNetflix)
            {
            //    description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=" + Server.UrlEncode(title) + "\" target=\"_blank\">Netflix</a>)" + description;

                string programUniqueIdentifier = programme.getUniqueProgrammeIdentifier();

                if (programUniqueIdentifier.StartsWith("MV"))
                {
                    ArrayList cast = ZapTools.GetCast(programUniqueIdentifier);
                    if (cast.Count > 0)
                    {
                        ZapTools.Crew crew = (ZapTools.Crew)cast[0];
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.netflix.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(crew.GivenName) + "+" + Server.UrlEncode(crew.SurName) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">NetFlix</a>)" + description;
                    }
                    else
                    {
                        description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=" + Server.UrlEncode(title) + "\" target=\"_blank\">Netflix</a>)" + description;
                    }

                }
                else
                {
                    if (subtitle != null && subtitle != "" )
                    {
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(subtitle) + "+overview&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)" + description;
                    }
                    else
                    {
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+" + Server.UrlEncode(title) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)" + description;
                    }
                }
            }
            // Show the show link to IMDB for all EPG Users
            if (externallinks && guideParams.showIMDB)
            {
            //    description = " (<a href=\"http://www.imdb.com/find?s=tt&q=" + Server.UrlEncode(title) + "\" target=\"_blank\">IMDB</a>)" + description;

                if (subtitle != null && subtitle != "" )
                {
                    description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(subtitle) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)" + description;
                }
                else
                {
                    string programUniqueIdentifier = programme.getUniqueProgrammeIdentifier();
                    ArrayList cast = ZapTools.GetCast(programUniqueIdentifier);
                    if (cast.Count > 0)
                    {
                        ZapTools.Crew crew = (ZapTools.Crew)cast[0];
                        if (programUniqueIdentifier.StartsWith("MV"))
                        {
                            description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(crew.GivenName) + "+" + Server.UrlEncode(crew.SurName) + "+%22Directed+by%22+-%22date+of+birth%22&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)" + description;
                        }
                        else
                        {
                            description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+" + Server.UrlEncode(title) + "+%22TV-Series%22+&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)" + description;

                        }
                    }
                    else
                    {
                        description = " (<a href=\"http://www.imdb.com/find?s=tt&q=" + Server.UrlEncode(title) + "\" target=\"_blank\">IMDB</a>)" + description;
                    }
                }
            }

The process is still simple enuf...

Basically, If NetFlix is enabled ( via Admin )....

If Program is a Movie, And has NO Cast Members,
the original NetFlix Search is Used...
If there is at least one cast/crew member the GivenName and SurName,
Are used to refine the Search and use Google's "Feeling Lucky"...

If the Program is NOT a Movie, TV.Com is used...
If the program has an Episode Title it is Used, with the Show Title,
Otherwise the Show Title is used alone...
Eitherway, Google's "Feeling Lucky" is used.

If IMDB is enabled,
If the program has an Episode Title it is Used, with the Show Title,
If NOT, the Program is check for cast/crew members,
If the program has cast and is a Movie,
Google's "Feeling Lucky" is used with the Name of the first Crew Member...
If NOT a Movie, The Show Title plus the Parameter "TV-Series" is used,
Again via Google...

Finally if the Show has No Episode Title, and No Crew...
The original IMDB Search is used...


~shrug~ Big Grin
I've spent most of the morning testing it...
So being Home sick with the flu, isn't a total waste...
-Dejunai
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#3
2007-01-11, 12:28 AM
dejunai Wrote:After posting the above this morning,
I considered the fact that IMDB also hosts Episode Data per TV Show...

So I went in and further hacked at the code...
The result is below; it is NOT optimized...

Code:
Starting on Line288:
            if (externallinks && guideParams.showNetflix)
            {
            //    description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=" + Server.UrlEncode(title) + "\" target=\"_blank\">Netflix</a>)" + description;

                string programUniqueIdentifier = programme.getUniqueProgrammeIdentifier();

                if (programUniqueIdentifier.StartsWith("MV"))
                {
                    ArrayList cast = ZapTools.GetCast(programUniqueIdentifier);
                    if (cast.Count > 0)
                    {
                        ZapTools.Crew crew = (ZapTools.Crew)cast[0];
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.netflix.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(crew.GivenName) + "+" + Server.UrlEncode(crew.SurName) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">NetFlix</a>)" + description;
                    }
                    else
                    {
                        description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=" + Server.UrlEncode(title) + "\" target=\"_blank\">Netflix</a>)" + description;
                    }

                }
                else
                {
                    if (subtitle != null && subtitle != "" )
                    {
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(subtitle) + "+overview&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)" + description;
                    }
                    else
                    {
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+" + Server.UrlEncode(title) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)" + description;
                    }
                }
            }
            // Show the show link to IMDB for all EPG Users
            if (externallinks && guideParams.showIMDB)
            {
            //    description = " (<a href=\"http://www.imdb.com/find?s=tt&q=" + Server.UrlEncode(title) + "\" target=\"_blank\">IMDB</a>)" + description;

                if (subtitle != null && subtitle != "" )
                {
                    description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(subtitle) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)" + description;
                }
                else
                {
                    string programUniqueIdentifier = programme.getUniqueProgrammeIdentifier();
                    ArrayList cast = ZapTools.GetCast(programUniqueIdentifier);
                    if (cast.Count > 0)
                    {
                        ZapTools.Crew crew = (ZapTools.Crew)cast[0];
                        if (programUniqueIdentifier.StartsWith("MV"))
                        {
                            description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+" + Server.UrlEncode(title) + "+" + Server.UrlEncode(crew.GivenName) + "+" + Server.UrlEncode(crew.SurName) + "+%22Directed+by%22+-%22date+of+birth%22&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)" + description;
                        }
                        else
                        {
                            description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+" + Server.UrlEncode(title) + "+%22TV-Series%22+&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)" + description;

                        }
                    }
                    else
                    {
                        description = " (<a href=\"http://www.imdb.com/find?s=tt&q=" + Server.UrlEncode(title) + "\" target=\"_blank\">IMDB</a>)" + description;
                    }
                }
            }
The process is still simple enuf...

Basically, If NetFlix is enabled ( via Admin )....

If Program is a Movie, And has NO Cast Members,
the original NetFlix Search is Used...
If there is at least one cast/crew member the GivenName and SurName,
Are used to refine the Search and use Google's "Feeling Lucky"...

If the Program is NOT a Movie, TV.Com is used...
If the program has an Episode Title it is Used, with the Show Title,
Otherwise the Show Title is used alone...
Eitherway, Google's "Feeling Lucky" is used.

If IMDB is enabled,
If the program has an Episode Title it is Used, with the Show Title,
If NOT, the Program is check for cast/crew members,
If the program has cast and is a Movie,
Google's "Feeling Lucky" is used with the Name of the first Crew Member...
If NOT a Movie, The Show Title plus the Parameter "TV-Series" is used,
Again via Google...

Finally if the Show has No Episode Title, and No Crew...
The original IMDB Search is used...


~shrug~ Big Grin
I've spent most of the morning testing it...
So being Home sick with the flu, isn't a total waste...
-Dejunai

Thanks....I'll give it a try. I am assuming this is based off the most current build? GBPVR ships with Build 53 but the current version is Build 54.

One thing to be aware of...if the code is not integrated with the core (I'll know after I play around with it for a little while....but it does sound cool Smile ) you will need to re-apply your chnages with each new GBPVR or EWA release.....and you will need to validate where you are putting it because line numbers can change based off of changes in the new release.

Also....some of this logic should be contigent on the user being a ZapTools users....i.e. the check for cast will only work if you are a ZapTools user....if the user is not I thinkn the code as wrtitten here will qack. :eek:
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
dejunai
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Dec 2006
#4
2007-01-11, 03:49 AM
UncleJohnsBand Wrote:Thanks....I'll give it a try. I am assuming this is based off the most current build? GBPVR ships with Build 53 but the current version is Build 54.

One thing to be aware of...if the code is not integrated with the core (I'll know after I play around with it for a little while....but it does sound cool Smile ) you will need to re-apply your chnages with each new GBPVR or EWA release.....and you will need to validate where you are putting it because line numbers can change based off of changes in the new release.

Also....some of this logic should be contigent on the user being a ZapTools users....i.e. the check for cast will only work if you are a ZapTools user....if the user is not I thinkn the code as wrtitten here will qack. :eek:

Yeah, It's based on the most current Updates I have access to.
GBPVR09905.msi and Build 54 of the EWA...

I appreciate you mentioning, and I do Understand,
That I'll need to re-edit the CS file, after each update...
And that I should check for ZapTools...

But as long as I can locate the basic code snippet:
Code:
if (externallinks && guideParams.showNetflix)
And Assuming it doesn't change dramatically, It should be manageable...

Again, Great Work on the EWA...
And thanks for the advice,
-Dejunai
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#5
2007-01-11, 05:17 PM
dejunai Wrote:But as long as I can locate the basic code snippet:
Code:
if (externallinks && guideParams.showNetflix)
And Assuming it doesn't change dramatically, It should be manageable...

Again, Great Work on the EWA...
And thanks for the advice,
-Dejunai

Tv.com link will be in the next release and it will have its own option to turn on or off on the config page.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
dejunai
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Dec 2006
#6
2007-01-11, 06:08 PM
UncleJohnsBand:
Yer PM Message Box is Full, So I can't really respond to your PM...

Below is what I had intended to say:
====================================================

I dont know if You visited my EWA...
You are still welcome to,
I have adjusted the code, so that if the Link is using
a Google "Lucky" link, it will also include the original link
in a small "(*)" Next to the new link...

Er, What I mean is:
Battlestar Galactica: A Measure of Salvation (IMDB)(*) (TV.Com)(*)

This is very helpful for Shows
That dont have Episode Titles, or Cast Lists
and rather generic Names, ( ie "The View" )...
The View (IMDB)(*) (TV.Com)(*)

You'll note that the "IMDB" Link links to the "Incredible Hulk"...
( Which may just be commentary on one the hosts Big Grin )

Anyway, My code does NOT include any optimization...
I just kinda brute forced the logic... And Still Didn't check for ZapTools...
I also refined the hidden search parameters, which has helped a great deal.

Such as for IMDB:
( when it's a Movie )
+"Directed By" +"Writing credits" -"Date of birth"
This helps avoid be drawn to the Cast Members Resume' page,
And also avoids the "Awards Page" for the Movie.
( when it's a TV Show, without an Episode Title )
+"TV-Series" is used...

NetFlix uses hidden parameters:
+Starring +Genre

TV.COM uses:
+overview
( if the show has an episode title )


Code:
Starting with Line 286:
//            // Add external links (these must be added in reverse order)
//            // Show the show link to Netflix for all EPG Users
//            if (externallinks && guideParams.showNetflix)
//            {
//                description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=" + Server.UrlEncode(title) + "\" target=\"_blank\">Netflix</a>)" + description;
//            }
//            // Show the show link to IMDB for all EPG Users
//            if (externallinks && guideParams.showIMDB)
//            {
//                description = " (<a href=\"http://www.imdb.com/find?s=tt&q=" + Server.UrlEncode(title) + "\" target=\"_blank\">IMDB</a>)" + description;
//            }

            if (externallinks && guideParams.showNetflix)
            {

                string programUniqueIdentifier = programme.getUniqueProgrammeIdentifier();

                if (programUniqueIdentifier.StartsWith("MV"))
                {
                    ArrayList cast = ZapTools.GetCast(programUniqueIdentifier);
                    if (cast.Count > 0)
                    {
                        ZapTools.Crew crew = (ZapTools.Crew)cast[0];
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.netflix.com+%22" + Server.UrlEncode(title) + "%22+%22" + Server.UrlEncode(crew.GivenName) + "+" + Server.UrlEncode(crew.SurName) + "%22+Starring+Genre&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">NetFlix</a>)(<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                    }
                    else
                    {
                        description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">Netflix</a>)" + description;
                    }

                }
                else
                {
                    if (subtitle != null && subtitle != "" )
                    {
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+%22" + Server.UrlEncode(title) + "%22+" + Server.UrlEncode(subtitle) + "+overview&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)(<a href=\"http://www.tv.com/search.php?type=11&stype=program&qs=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                    }
                    else
                    {
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+%22" + Server.UrlEncode(title) + "%22&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)(<a href=\"http://www.tv.com/search.php?type=11&stype=program&qs=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                    }
                }
            }

            if (externallinks && guideParams.showIMDB)
            {

                if (subtitle != null && subtitle != "" )
                {
                    description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+%22" + Server.UrlEncode(title) + "%22+" + Server.UrlEncode(subtitle) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)(<a href=\"http://www.imdb.com/find?s=tt&q=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                }
                else
                {
                    string programUniqueIdentifier = programme.getUniqueProgrammeIdentifier();
                    ArrayList cast = ZapTools.GetCast(programUniqueIdentifier);
                    if (cast.Count > 0)
                    {
                        ZapTools.Crew crew = (ZapTools.Crew)cast[0];
                        if (programUniqueIdentifier.StartsWith("MV"))
                        {
                            description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+%22" + Server.UrlEncode(title) + "%22+%22" + Server.UrlEncode(crew.GivenName) + "+" + Server.UrlEncode(crew.SurName) + "%22+%2B%22Directed+by%22+%2B%22Writing+credits%22+-%22date+of+birth%22&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)(<a href=\"http://www.imdb.com/find?s=tt&q=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                        }
                        else
                        {
                            description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+%22" + Server.UrlEncode(title) + "%22+%22TV-Series%22+&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)(<a href=\"http://www.imdb.com/find?s=tt&q=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;

                        }
                    }
                    else
                    {
                        description = " (<a href=\"http://www.imdb.com/find?s=tt&q=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">IMDB</a>)" + description;
                    }
                }
            }

The Search Result links are in the post below...
Post was a bit too long ( dOh Rolleyes )
-Dejunai
dejunai
Offline

Junior Member

Posts: 24
Threads: 4
Joined: Dec 2006
#7
2007-01-11, 06:12 PM (This post was last modified: 2007-01-11, 06:15 PM by dejunai.)
I also added the new links to the Search Return...
Everything seems to be working very Well...
The Search Return code is identical, except that the challenge to
VAR externallinks is removed, because the VAR is unavailable...
And VAR subtitle is already formated for HTML,
So I faked it with VAR subtitleX...

Search Return Links :
Code:
Starting on ( Build v.54 ) Line 654:
//           if (guideParams.showNetflix)
//           {
//               description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=" + Server.UrlEncode(title) + "\" target=\"_blank\">Netflix</a>)" + description;
//           }
//           // Show the show link to IMDB for all EPG Users
//           if (guideParams.showIMDB)
//           {
//               description = " (<a href=\"http://www.imdb.com/find?s=tt&q=" + Server.UrlEncode(title) + "\" target=\"_blank\">IMDB</a>)" + description;
//           }
            // Add external links (these must be added in reverse order)
            // Show the show link to Netflix for all EPG Users

            string subtitleX = programme.getSubTitle();

            if (guideParams.showNetflix)
            {

                string programUniqueIdentifier = programme.getUniqueProgrammeIdentifier();

                if (programUniqueIdentifier.StartsWith("MV"))
                {
                    ArrayList cast = ZapTools.GetCast(programUniqueIdentifier);
                    if (cast.Count > 0)
                    {
                        ZapTools.Crew crew = (ZapTools.Crew)cast[0];
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.netflix.com+%22" + Server.UrlEncode(title) + "%22+%22" + Server.UrlEncode(crew.GivenName) + "+" + Server.UrlEncode(crew.SurName) + "%22+Starring+Genre&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">NetFlix</a>)(<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                    }
                    else
                    {
                        description = " (<a href=\"http://www.netflix.com/Search?dtl=1&type=title&v1=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">Netflix</a>)" + description;
                    }

                }
                else
                {
                    if (subtitleX != null && subtitleX != "" )
                    {
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+%22" + Server.UrlEncode(title) + "%22+" + Server.UrlEncode(subtitleX) + "+overview&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)(<a href=\"http://www.tv.com/search.php?type=11&stype=program&qs=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                    }
                    else
                    {
                        description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.tv.com+%22" + Server.UrlEncode(title) + "%22&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">TV.Com</a>)(<a href=\"http://www.tv.com/search.php?type=11&stype=program&qs=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                    }
                }
            }
            // Show the show link to IMDB for all EPG Users
            if (guideParams.showIMDB)
            {

                if (subtitleX != null && subtitleX != "" )
                {
                    description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+%22" + Server.UrlEncode(title) + "%22+" + Server.UrlEncode(subtitleX) + "&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)(<a href=\"http://www.imdb.com/find?s=tt&q=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                }
                else
                {
                    string programUniqueIdentifier = programme.getUniqueProgrammeIdentifier();
                    ArrayList cast = ZapTools.GetCast(programUniqueIdentifier);
                    if (cast.Count > 0)
                    {
                        ZapTools.Crew crew = (ZapTools.Crew)cast[0];
                        if (programUniqueIdentifier.StartsWith("MV"))
                        {
                            description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+%22" + Server.UrlEncode(title) + "%22+%22" + Server.UrlEncode(crew.GivenName) + "+" + Server.UrlEncode(crew.SurName) + "%22+%2B%22Directed+by%22+%2B%22Writing+credits%22+-%22date+of+birth%22&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)(<a href=\"http://www.imdb.com/find?s=tt&q=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;
                        }
                        else
                        {
                            description = " (<a href=\"http://www.google.com/search?hl=en&q=site%3Awww.imdb.com+%22" + Server.UrlEncode(title) + "%22+%22TV-Series%22+&btnI=I%27m+Feeling+Lucky" + "\" target=\"_blank\">IMDB</a>)(<a href=\"http://www.imdb.com/find?s=tt&q=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">*</a>)" + description;

                        }
                    }
                    else
                    {
                        description = " (<a href=\"http://www.imdb.com/find?s=tt&q=%22" + Server.UrlEncode(title) + "%22\" target=\"_blank\">IMDB</a>)" + description;
                    }
                }
            }

I am very glad I could contribute something to the community...
Even if it is a bit unpolished....

I look forward to the next BUILD of EWA... Smile
-Dejunai
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Broken X-NEWA Info Link on NextPVR.com cweseloh 4 2,732 2020-05-02, 01:02 AM
Last Post: cweseloh
  Episode search missing in 4.2.4 UncT 4 3,139 2019-03-08, 06:08 PM
Last Post: UncT
  gbpvr.com still somewhere in the NEWA code? jksmurf 0 2,083 2019-02-26, 01:29 AM
Last Post: jksmurf
  'Record This Episode'-button is not active haste18 3 3,159 2015-12-15, 10:06 PM
Last Post: UncleJohnsBand
  EPGEventDisplay - Adding web search link sle118 0 2,034 2015-11-02, 03:11 PM
Last Post: sle118
  Direct access to media folder structures? SFX Group 4 2,378 2015-06-02, 10:48 PM
Last Post: SFX Group
  Null search strings in episode search ... softfoot 1 1,502 2013-11-27, 03:32 AM
Last Post: UncleJohnsBand
  episode search, don't get it - not working ? KRA 17 6,207 2012-10-28, 12:28 AM
Last Post: UncleJohnsBand
  Attempting to hit login page inside local network fails wtg 8 3,528 2012-08-27, 08:57 PM
Last Post: wtg
  How to record one episode (v2.2.6) SFX Group 4 2,364 2011-09-25, 01:38 PM
Last Post: UncleJohnsBand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode