Kodi Community Forum

Full Version: javascript & original title issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have two issues:
1. the page i'm scraping has a javascript code that runs after the page loads and changes a relevant HTML element.
How can I scrape the page after the javascript code has ran ?
2. I want that episode matching will be done using the english <ORIGINALTITLE> and not the hebrew <TITLE>
1. Not possible, I don't think. There's no javascript engine in XBMC with which to run the javascript.

2. I'm not sure what you mean. Episode matching between files and the episode guide only relies on the season and episode numbers.
OK, thanks.
But as for my first question, what would you advise in order to scrape this URL for example:
http://www.sratim.co.il/viewseries.php?i...91&e=93470

I want to fetch Season 2 Episode 7 of Louie ("Oh Louie/Tickets") but there is a javascript code that AJAX that episode info into the page after the first load.
So the source code has Episode 13 Season 3 which is what the base URL gets (http://www.sratim.co.il/viewseries.php?id=21422)
Try manipulating the url from:
Code:
http://www.sratim.co.il/viewseries.php?id=21422#!s=4091&e=93470
to
Code:
http://www.sratim.co.il/viewseries.php?id=21422&s=4091&e=93470

(i.e. replace the #! with &)
(2013-03-03, 19:07)scudlee Wrote: [ -> ]Try manipulating the url from:
Code:
http://www.sratim.co.il/viewseries.php?id=21422#!s=4091&e=93470
to
Code:
http://www.sratim.co.il/viewseries.php?id=21422&s=4091&e=93470

(i.e. replace the #! with &)

Thanks! So Simple!