English > Scripts and Templates

Script: TheMovieDB [ES] (Easy API Script)

<< < (6/11) > >>

VVV_Easy_Programing:
Yes  :'( :'(
It seems like PVdB script GET funtion does not recogniced the "https://" prefix.

If I use:
    SEARCH_STR    = 'http://www.themoviedb.org/search/movie?query=%s'
Log Window shows:
    (11/12/2014 21:12:35) Searching movie information for: Little House on the Prairie
    (11/12/2014 21:12:35) GET: http://www.themoviedb.org/search/movie?query=Little+House+on+the+Prairie
    (11/12/2014 21:12:36) Redirected to: https://www.themoviedb.org/search/movie?query=Little+House+on+the+Prairie
    (11/12/2014 21:12:36) IOHandler value is not valid

If I use:
    SEARCH_STR    = 'https://www.themoviedb.org/search/movie?query=%s'
Log Window shows:
    (11/12/2014 21:17:40) Searching movie information for: Little House on the Prairie
    (11/12/2014 21:17:40) GET: http://https://www.themoviedb.org/search/movie?query=Little+House+on+the+Prairie
    (11/12/2014 21:17:43) Socket Error # 11001 Host not found.

I could use the api search:
    http://api.themoviedb.org/3/search/movie?query=%s&api_key=0a4782bd3877917501a2d45e1198f809'
but it's more difficult ( Not Easy Script ;) ).

I will continue working but it is a shame not to correct the problem of the GET function. Any idea?

Ivek23:

--- Quote from: VVV_Easy_Programing on December 11, 2014, 09:36:42 pm ---I could use the api search:
    http://api.themoviedb.org/3/search/movie?query=%s&api_key=0a4782bd3877917501a2d45e1198f809'
but it's more difficult ( Not Easy Script ;) ).

I will continue working but it is a shame not to correct the problem of the GET function. Any idea?
--- End quote ---

Mavbe this api search:
 http://api.themoviedb.org/3/search/movie?query=%s&language=en&include_adult=true&api_key=0a4782bd3877917501a2d45e1198f809

Downloading from:
http://api.themoviedb.org/3/movie/'+MovieID+'&append_to_response=alternative_titles,credits,keywords,images&language=en&api_key=0a4782bd3877917501a2d45e1198f809

Ivek23:

--- Quote from: Ivek23 on December 12, 2014, 01:57:04 pm ---
--- Quote from: VVV_Easy_Programing on December 11, 2014, 09:36:42 pm ---I could use the api search:
    http://api.themoviedb.org/3/search/movie?query=%s&api_key=0a4782bd3877917501a2d45e1198f809'
but it's more difficult ( Not Easy Script ;) ).

I will continue working but it is a shame not to correct the problem of the GET function. Any idea?
--- End quote ---

Mavbe this api search:
 http://api.themoviedb.org/3/search/movie?query=%s&language=en&include_adult=true&api_key=0a4782bd3877917501a2d45e1198f809

Downloading from:
http://api.themoviedb.org/3/movie/'+MovieID+'&append_to_response=alternative_titles,credits,keywords,images&language=en&api_key=0a4782bd3877917501a2d45e1198f809

--- End quote ---

I've done a lot of tests, but I did not find any solutions.


--- Quote from: VVV_Easy_Programing on December 11, 2014, 09:36:42 pm ---Yes  :'( :'(
It seems like PVdB script GET funtion does not recogniced the "https://" prefix
--- End quote ---

Unfortunately, it is true, as has already been mentioned above and there is no solution for this problem.

As shown in the present example TheMovieDB when the page is
start url address "http://" into "https://" and now the script for this page yet find search results just by using the api-key, the transfer of information from TheMovieDB web pages it does not work anymore.

I think that in the future more and more web pages start url title changed to "https://" and the script and maybe even plugins will no longer work,
because it does not use the api-key options, as is the case TheMovieDB web page.

BTW:
TheMovieDB plugin still works for now, since it uses the api-key.

Ivek23:

--- Quote from: Ivek23 on December 12, 2014, 01:57:04 pm ---Downloading from:
http://api.themoviedb.org/3/movie/'+MovieID+'&append_to_response=alternative_titles,credits,keywords,images&language=en&api_key=0a4782bd3877917501a2d45e1198f809
--- End quote ---

The correct url
http://api.themoviedb.org/3/movie/'+MovieID+'?append_to_response=alternative_titles,credits,keywords,images&language=en&api_key=0a4782bd3877917501a2d45e1198f809

VVV_Easy_Programing:
Completely redone  :) :D :).
It has a Rondabout in GetBaseURL for "cheat" GET PVdB funtion (the fail "https") and this allows using the standard link "http://www.themoviedb.org/movie/".
In addition, the structure of the script is linear, use the record movie_id (imdb or themoviedb) and get much more information.

CHANGE LOG (14/12/2014):
            V 0.2.0.0   VVV: Adjust new API based scrip (not Web search based).
                       (PVdB "GET" scripts funtions doesn't work with 'https' URL).
(Edito: New version down)


--- Quote from: Ivek23 on December 13, 2014, 01:00:49 pm ---
--- Quote ---I think that in the future more and more web pages start url title changed to "https://" and the script and maybe even plugins will no longer work,
because it does not use the api-key options, as is the case TheMovieDB web page.

--- End quote ---

--- End quote ---
I also afraid that :'(. As many pages do not have (or do not publish) their api_keys I tried to make a script that "would read" pages but now we know that can not work with "https". ;D PVdB new version? ;D Please ....

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version