-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update #58
base: main
Are you sure you want to change the base?
Update #58
Conversation
update to use gender tags
move switch for actors overview style
html improvement
case "Female": | ||
overview = Regex.Replace(overview, @"<male>.*?</male>|<trans>.*?</trans>", string.Empty); | ||
break; | ||
case ActorsOverviewStyle.Default: | ||
overview = (string)actorData["bio"]; | ||
case "Trans": | ||
overview = Regex.Replace(overview, @"<female>.*?</female>|<male>.*?</male>", string.Empty); | ||
break; | ||
case "Male": | ||
overview = Regex.Replace(overview, @"<female>.*?</female>|<trans>.*?</trans>", string.Empty); | ||
break; | ||
default: | ||
overview = " "; | ||
overview = Regex.Replace(overview, @"<female>.*?</female>|<trans>.*?</trans>|<male>.*?</male>", string.Empty); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's point of that <male>, <female> ets
? it only makes code more complicated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to be able to use different strings for the overview based on the property of gender
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And how it works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an example <strong>{ethnicity}</strong>
for all actors
<female><div style="color:red;"><br>Cupsize : {cupsize}<br>Waist : {waist}<br>Hips : {hips}<br></div></female>
only for female actors
and so on
Added tags so can be made a difference for gender in the custom string , moved the switch for selecting the overview to MetadataAPI and HTML some improvements