Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Update #58

wants to merge 7 commits into from

Conversation

Mace-git
Copy link
Contributor

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

Comment on lines +38 to +48
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);
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And how it works?

Copy link
Contributor Author

@Mace-git Mace-git Feb 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants