iafd person string "Website" wrong

How to make Movienizer support new sites. Customize Movienizer.
Post Reply
User avatar
xbox80
Superstar
Posts: 501
Joined: Tue Sep 15, 2009 8:50 am
Location: Italy-Russian

iafd person string "Website" wrong

Post by xbox80 » Tue Dec 22, 2015 7:39 pm

here is an error in "iafd_person.pas" :|

the string "Website" and wrong

Code: Select all

//about
		i:=Pos('<p class="bioheading">Years Active</p>', all);
		if i=0 then
			i:=Pos('<b>Year Active</b>', all);
		if i>0 then begin
			j:=MyPos('</p><div', all, i+1);
			s:=copy(all, i, j-i);
			s := ReplaceStr(s, '</p>', ': ', -1);
			description:=description+RemoveTags(s);
		end;

Image



I fixed this (thanks Vlad) ;)

Code: Select all

//Website
		i:=Pos('<p class="bioheading">Website</p>', all);
		if i=0 then
			i:=Pos('<b>Website</b>', all);
		if i>0 then begin
			j:=MyPos('</p><div', all, i+1);
			s:=copy(all, i, j-i);
			s := ReplaceStr(s, '</p>', ': ', -1);
			description:=description + 'Website: '+s+#13#10;
		end;
Image


original code from IAFD

Code: Select all

p class="bioheading">Years Active</p><p class="biodata">2011-2015 (Started around 20 years old)</p>
<p class="bioheading">Website</p><p class="biodata">
<a target="starlet" href="http://en.wikipedia.org/wiki/Riley_Reid">http://en.wikipedia.org/wiki/Riley_Reid</a>
</p><p class="biodata"><a target="starlet" href="http://twitter.com/rileyreidx3">http://twitter.com/rileyreidx3</a>
</p><p class="biodata"><a target="starlet" href="http://www.club-rileyreid.com">http://www.club-rileyreid.com</a>
</p><p class="biodata"><a target="starlet" href="http://www.reidmylips.com">http://www.reidmylips.com</a>
</p><p class="biodata"><a target="starlet" href="http://www.rileyreid.com">http://www.rileyreid.com</a></p>
<div class="text-left" id="corrections"><br><br><a href="/suggest_url.rme/perfid=paigeril

Post Reply