Skip to content

Commit

Permalink
update progress bar and rating parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandaka committed Apr 11, 2024
1 parent ea74eff commit 5a35c32
Show file tree
Hide file tree
Showing 5 changed files with 2,152 additions and 2,122 deletions.
5 changes: 3 additions & 2 deletions DanbooruDownloader3/Engine/SankakuComplexParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,9 @@ public BindingList<DanbooruPost> Parse(string data, DanbooruSearchParam searchPa
post.Width = Int32.Parse(resArr[0]);
post.Height = Int32.Parse(resArr[1]);

string rating = title.Substring(title.LastIndexOf("Rating:") + 7, 1);
//rating = rating.Substring(0, rating.IndexOf(" ")).Trim();
// R15+, R18+, G
string rating = title.Substring(title.LastIndexOf("Rating:") + 7, 5);
rating = rating.Substring(0, rating.IndexOf(" ")).Trim();
post.Rating = rating.ToLower();

post.CreatorId = title.Substring(title.LastIndexOf("User:") + 5);
Expand Down
Loading

0 comments on commit 5a35c32

Please sign in to comment.