Open wongsanchez opened 3 weeks ago
Resolves #237
Not entirely sure how to get it to completely work.
I changed modified the if statement and it works seems to works but not for every video
if ((searchTitle.StartsWith("ph", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("1", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("2", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("3", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("4", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("5", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("6", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("7", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("8", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("9", StringComparison.OrdinalIgnoreCase) || searchTitle.StartsWith("0", StringComparison.OrdinalIgnoreCase) || int.TryParse(searchTitle, out _)) && !searchTitle.Contains(' ', StringComparison.OrdinalIgnoreCase))
I tested with theses
Used the following file name styles
Pornhub - ID - Name.ext
Pornhub - Name.ext
Pornhub - ID.ext
With the only exception of only the 6th video while using Pornhub - ID - Name.ext all worked.
Resolves #237
Not entirely sure how to get it to completely work.
I changed modified the if statement and it works seems to works but not for every video
I tested with theses
Used the following file name styles
Pornhub - ID - Name.ext
Pornhub - Name.ext
Pornhub - ID.ext
With the only exception of only the 6th video while using
Pornhub - ID - Name.ext
all worked.