Anmelden

Archiv verlassen und diese Seite im Standarddesign anzeigen : intelligen 129 mehr wie 85 Zeichen im Titel bei mygully



Dr.Byte
05.08.2017, 08:32
Moin,

leider kürzt IG nicht automatisch meinen Titel des Release auf 85 Zeichen.
Diesen Eintag habe ich in die Subject gesetzt:


import "iUtils.js"
print(copy(IReleaseName, 1, 85));

Aber es kürzt nicht automatsich und IG meldet zuviel Zeichen da MG nur 85 Zeichen erlaubt.
Hat jemand eine Idee ?

Danke im vorraus.

Dr.Byte

Checcker
05.08.2017, 16:09
Hier kannst meinen haben und anpassen funzt bestens



import "iUtils.js"

if(IType == "PCGames")
{
print(ITitle + " - " + copy(IRELEASENAME, Pos("-", IRELEASENAME) + 1, 85));
}
else if((IType == "PlayStation3") || (IType == "Xbox360"))
{
print(ITitle);
}
else if(IType == "Movie")
{
s = IReleaseName;

if( CharCount("_", s) > CharCount(".", s) )
s = StringReplace(s, "_", " ");
else
s = StringReplace(s, ".", " ");
s = StringReplace(s, "-", " - ");

print(copy(s , 1 , 85));
}

XXX-Upper
07.08.2017, 09:19
@checcker Vielen Dank, klappt prima :-)
Könntest du mir den Eintrag für die Prefixe auch noch posten ?

Irgendwie macht IG immer den selben Prefix bei Neueinträgen. Bekomme es net hin.

Meiner sieht so aus:


<prefix>
<type name="Movie" id="Action"/>

</prefix>

Danke im vorraus. :-)

PromillePanzer
07.08.2017, 10:50
Wenn du nur 1 Präfix angegeben hast, kann er auch nur diesen 1 Posten.

XXX-Upper
07.08.2017, 15:55
Wenn du nur 1 Präfix angegeben hast ... . Wenn ich wüsste wie man mehr postet würde ich es tun und hier nicht fragen ... aber danke für deine hilfe :-)

Checcker
07.08.2017, 16:43
Musst halt noch anpassen. Erstelle einfach ein neues Thread im Forum. Dann schaust im Quelltext der Page nach und passt Sie an. Ansonsten hier meine falls es dir hilft musst aber eben alles was in value="" steht abändern zu denen die du in IntelligeN verwendest. Das was unter id="" steht ist das Prefix von MG



<type name="Movie" id="Movie">
<subtype type="IGenre" value="Abenteuer" id="Abenteuer"/>
<subtype type="IGenre" value="Action" id="Action"/>
<subtype type="IGenre" value="Thriller" id="Thriller"/>
<subtype type="IGenre" value="Horror" id="Horror"/>
<subtype type="IGenre" value="Komödie" id="Komoedie"/>
<subtype type="IGenre" value="Fantasie" id="Fantasy"/>
<subtype type="IGenre" value="Drama" id="Drama"/>
<subtype type="IGenre" value="Science Fiction" id="SciFi"/>
<subtype type="IGenre" value="Liebesfilm" id="Romance"/>
<subtype type="IGenre" value="Mystery" id="Mystery"/>
<subtype type="IGenre" value="Animation" id="Animation"/>
<subtype type="IGenre" value="Zeichentrick" id="Animation"/>
<subtype type="IGenre" value="Biography" id="Biography"/>
<subtype type="IGenre" value="Crime" id="KrimiMovie"/>
<subtype type="IGenre" value="Historienfilm" id="Historisch"/>
<subtype type="IGenre" value="Sport" id="Sport"/>
<subtype type="IGenre" value="Eastern" id="Eastern"/>
<subtype type="IGenre" value="Western" id="Western"/>
<subtype type="IGenre" value="Krimi" id="KrimiMovie"/>
</type>