It is currently September 29th, 2024, 7:34 am

Imdb DVD&Blu-Ray Releases

Get help with creating, editing & fixing problems with skins
User avatar
Mr. Spock
Posts: 46
Joined: August 5th, 2013, 6:07 pm
Location: The Netherlands

Re: Imdb DVD&Blu-Ray Releases

Post by Mr. Spock »

Thx for the help but treid both ways

Code: Select all

(?siU)<title>(.*)</title>.*<h1 class="header">(.*)</h1>.*<img src="(.*)">.*<div class="number"(.*)</div>.*<a.*;"\s\s\s\s\s(.*)\s\s\s\s>(.*)</a>.*href="(.*)".*>(.*)</a>.*<span class="year_type">(.*)</span>
Return in RainRegExp
3 => http://ia.media-imdb.com/images/M/MV5BODAzNDMxMzAxOV5BMl5BanBnXkFtZTgwMDMxMjA4MjE@._V1._SY209_CR0,0,140,209_.jpg" height="209" width="140" alt="Image of Birdman" class="zero-z-index
4 => >1.
5 => href="/title/tt2562232/"
6 => Birdman
7 => http://i.media-imdb.com/images/SF86490d125684bb6a47cdfa12a86f7d98/css/min/rating.css
8 =>
<div class="rating rating-list" data-auth="BCYlIRr3GrIcCTvlGk66IxAJhCtt7XjYtM4C_s4JQ8ZRtt7-9fjMW_stJTbFHR_Kq-WmnsMbxPfafciqXz7gi-5t6BKYtvnc8z32McKM5QsLfxnOIv05wYOMaOPcQTPGMett" id="tt2562232|imdb|8.1|8.1|list" data-ga-identifier="list"
title="Users rated this 8.1/10 (161,427 votes) - click stars to rate">
<span class="rating-bg">&nbsp;</span>
<span class="rating-imdb" style="width: 113px">&nbsp;</span>
<span class="rating-stars">
<a href="/register/login?why=vote" title="Register or login to rate this title" rel="nofollow"><span>1</span>
9 => (2014)]
and using the

Code: Select all

RegExpSubstitute=1
Substitute="href="(.*)":"\1"
Don't remove the href=/

Been reading in the helpfile of substitute and found this line
Substitute="^(.{0,5}).+$":"\1..."
; Truncates string by length (in this case 5) and appends "...".
; The result is: Hello...
But i need it to delete the href="/

Do you have any solution
Or maybe somebody else know

Thx for the help
Last edited by Mr. Spock on February 24th, 2015, 4:46 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Imdb DVD&Blu-Ray Releases

Post by balala »

Try to not use Substitute, but this RegExp: (?siU)<a.*;"\s\s\s\s\shref="(.*)"\s\s\s\s>(.*)</a>.
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: Imdb DVD&Blu-Ray Releases

Post by FreeRaider »

I have created a "raw" skin.

let me know if you need it

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1

[MeasureIMDb]
Measure=Plugin
Plugin=Webparser
URL=http://www.imdb.com/sections/dvd/
RegExp=(?siU).*<h1 class="header">(.*)</h1>.*<div class="image">.*<a.*href="(.*)".*>.*<img src="(.*)".*>.*<div class="number">(.*).</div>.*<div class="info">.*<a.*>(.*)</a>.*<span class="year_type">\((.*)\)</span>.*<span class="rating-rating">.*<span class="value">(.*)</span>.*<span class="grey">(.*)</span><span class="grey">(.*)</span></span>.*<div class="item_description">(.*)<span>\((.*)\)</span></div>.*<div class="secondary">.*Director:.*(?=<a href=.*>)<a href=.*>(.*)</a>.*<div class="secondary">Stars:.*(?=<a href=.*>)<a href=.*>(.*)</a>.*,.*(?=<a href=.*>)<a href=.*>(.*)</a>.*,.*(?=<a href=.*>)<a href=.*>(.*)</a>.*,.*(?=<a href=.*>)<a href=.*>(.*)</a></div>
UpdateRate=600

[MeasureTitle]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=1

[MeasureReference]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=2

[MeasureMovieImage]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=3
Download=1
DownloadFile=Movie1.jpg

[MeasureNumberList]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=4

[MeasureMovieTitle]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=5

[MeasureMovieYear]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=6

[MeasureMovieRating]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=7

[MeasureSlash]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=8

[MeasureOver]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=9

[MeasureMovieDesciption]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=10

[MeasureMovieDuration]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=11

[MeasureMovieDirector]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=12
RegExpSubstitute=1
Substitute="(\W++\w+\d;)":"\1","&#xE1;":"á","&#xF1;":"ñ"
DynamicVariables=1


[MeasureMovieStar1]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=13

[MeasureMovieStar2]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=14

[MeasureMovieStar3]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=15

[MeasureMovieStar4]
Measure=Plugin
Plugin=Webparser
URL=[MeasureIMDb]
StringIndex=16

;--------------
[TitleStyle]
FontFace=Courier New
FontSize=14
FontColor=255,255,255,255
StringStyle=Bold
AntiAlias=1

[NormalText]
FontFace=Courier New
FontSize=10
FontColor=255,255,255,255
StringStyle=Normal
AntiAlias=1
;--------------
[MeterBackGround]
Meter=Image
X=0
Y=0
W=( [MeterTitle:W] + [MeterMovieImage:W] + 15 )
H=( [MeterMovieImage:H] + 35 )
SolidColor=0,0,0,255
DynamicVariables=1

[MeterTitle]
Meter=String
MeasureName=MeasureTitle
X=150
Y=0
MeterStyle=TitleStyle
Text=%1
DynamicVariables=1

[MeterMovieImage]
Meter=Image
MeasureName=MeasureMovieImage
X=0
Y=30
W=140
H=209
LeftMouseUpAction=["http://www.imdb.com[MeasureReference]"]
DynamicVariables=1

[MeterNumberList]
Meter=String
MeasureName=MeasureNumberList
X=150
Y=0r
MeterStyle=NormalText
Text="%1]"
DynamicVariables=1

[MeterMovieTitle]
Meter=String
MeasureName=MeasureMovieTitle
X=([MeterNumberList:W] + 10 )r
Y=0r
MeterStyle=NormalText
FontSize=13
StringStyle=Bold
Text=%1
DynamicVariables=1

[MeterMovieYear]
Meter=String
MeasureName=MeasureMovieYear
X=([MeterMovieTitle:W] + 5)r
Y=([MeterNumberList:Y])
MeterStyle=NormalText
Text=(%1)
DynamicVariables=1

[MeterMovieRating]
Meter=String
MeasureName=MeasureMovieRating
MeasureName2=MeasureSlash
MeasureName3=MeasureOver
X=150
Y=25r
MeterStyle=NormalText
Text="Rating: %1%2%3"
DynamicVariables=1

[MeterMovieDesciptionDuration]
Meter=String
MeasureName=MeasureMovieDesciption
MeasureName2=MeasureMovieDuration
X=150
Y=25r
MeterStyle=NormalText
Text="%1 - Dur: %2"
ClipString=2
ClipStringW=290
DynamicVariables=1

[MeterMovieDirector]
Meter=String
MeasureName=MeasureMovieDirector
X=150
Y=([MeterMovieDesciptionDuration:H] + 10)r
MeterStyle=NormalText
Text="Director: %1"
DynamicVariables=1

[MeterMovieStars]
Meter=String
MeasureName=MeasureMovieStar1
MeasureName2=MeasureMovieStar2
MeasureName3=MeasureMovieStar3
MeasureName4=MeasureMovieStar4
X=150
Y=15r
MeterStyle=NormalText
Text="Stars: %1, %2, %3, %4"
ClipString=2
ClipStringW=290
DynamicVariables=1
It's an example, for one movie...and it looks
You do not have the required permissions to view the files attached to this post.
User avatar
Mr. Spock
Posts: 46
Joined: August 5th, 2013, 6:07 pm
Location: The Netherlands

Re: Imdb DVD&Blu-Ray Releases

Post by Mr. Spock »

Thx Balala
learned something new

@ Freeraider wow I'm impressed that would toke me a long time to get that far.
But indeed that is what i have in mind.
Yes indeed i want to use it and if you don't mind expanding it

Now need it to make for more movies but that will not be that difficult.
Then next thing i want to do with it is to make it scrolling also that will not be to difficult (found already a good skin)
Last item to do is find a solution for the error problem when for instance i make it for 10 movies but there are just released 3 movies. (geuss for that i need lua saw a torrent skin that use that prrincipale)

Maybe it's gone be wise to explain what my end goal is, and start a topic about it.
This because i can have a open view, and other people can come with ideas

As far as i know for HTPC there are no real skins, that give all the information what a good HTPC need.
There are some fronted skins like
http://htpc.io/index.html
http://www.maraschinoproject.com/
But nothing that really lay on top of the windows desktop, so after searching and searching the web and using rainmeter on my normal desktop i have a very strong feeling i can make it all posible with rainmeter, so i can take away the taskbar and have it all in 1 view and start or check everything with one mouseclick
So far and with a lot of help :D it starts to come together.
What are you thinking shall i open just one topic to make it so that all the parts will be together or make for every part a separate topic. ( I admit it's a long learning process for me so for other parts i also gone have qeustions)

Once again thx for all the help :thumbup:
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: Imdb DVD&Blu-Ray Releases

Post by FreeRaider »

You are free to modifying or expanding it, but remember my nickname when you will share it :D

In my opinion, one topic for one type of request (for example... issue with regexp), but you remember: posting is "be one's last hope", before you have to try and try again to solve issues.


P.S.: That site provides 5 movie anytime, not 10. Maybe am I wrong?
User avatar
Mr. Spock
Posts: 46
Joined: August 5th, 2013, 6:07 pm
Location: The Netherlands

Re: Imdb DVD&Blu-Ray Releases

Post by Mr. Spock »

FreeRaider wrote: P.S.: That site provides 5 movie anytime, not 10. Maybe am I wrong?
It looks like this week are just 5 releases, and I'm not sure if this page also offers more or it was the RSS page

For sure i will remeber all the nickname's of people who helpt me
That's just fair