home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Filmtipset.se - Swedish grabber
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RoChess" data-source="post: 1270388" data-attributes="member: 18896"><p>In that case you have to make multiple <retrieve> statements, so you should put the <retrieve> inside the loop, and break out of the loop when you got a match. Simple <if> statements allows you to check if a value is found, but I forgot the code to break a loop, or just let it finish regardless.</p><p></p><p>Another option is to duplicate your logic multiple times manually and wrap it with an <if> statement to check if you got any results back from the previous regular expression parsing.</p><p></p><p>IMDb+ is full of those type of statements to account for all the different configuration options that can be adjusted.</p><p></p><p>The HTML source probably contains a reference to "find more results on Page #2" which should give you that https://....&p=2 link, and you can make that part of a regexp capture group to act on those results if they are available, so you only navigate through two pages if there are only two pages worth of results, but go through five of them if there are 5-pages.</p><p></p><p>There is no if-then-else, but you can do an <if> + <!if> to achieve the same result, or take things one step further the way I do with IMDb+ by relying on boolean temporary values to remember a state to proceed with.</p></blockquote><p></p>
[QUOTE="RoChess, post: 1270388, member: 18896"] In that case you have to make multiple <retrieve> statements, so you should put the <retrieve> inside the loop, and break out of the loop when you got a match. Simple <if> statements allows you to check if a value is found, but I forgot the code to break a loop, or just let it finish regardless. Another option is to duplicate your logic multiple times manually and wrap it with an <if> statement to check if you got any results back from the previous regular expression parsing. IMDb+ is full of those type of statements to account for all the different configuration options that can be adjusted. The HTML source probably contains a reference to "find more results on Page #2" which should give you that https://....&p=2 link, and you can make that part of a regexp capture group to act on those results if they are available, so you only navigate through two pages if there are only two pages worth of results, but go through five of them if there are 5-pages. There is no if-then-else, but you can do an <if> + <!if> to achieve the same result, or take things one step further the way I do with IMDb+ by relying on boolean temporary values to remember a state to proceed with. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Filmtipset.se - Swedish grabber
Contact us
RSS
Top
Bottom