Guest User

Untitled

a guest
Sep 24th, 2016
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public virtual string BeautifyName(string item, out string parsedDate)
  2. {
  3. var r = new Regex(@"(\d+)[-.\/](\d+)[-.\/](\d+)");
  4. var m = r.Match(item);
  5. parsedDate = null;
  6. if (m.Success)
  7. {
  8. item = item.Replace(m.Value, "");
  9. parsedDate = m.Value;
  10. }
  11.  
  12. item = item.Replace("1080p", "")
  13. .Replace("1080P", "")
  14. .Replace("1080", "")
  15. .Replace("720p", "")
  16. .Replace("720P", "")
  17. .Replace("720", "")
  18. .Replace("540p", "")
  19. .Replace("540P", "")
  20. .Replace("540", "")
  21. .Replace("2160p", "")
  22. .Replace("2160P", "")
  23. .Replace("2160", "")
  24. .Replace("4k", "")
  25. .Replace("4K", "")
  26. .Replace("XXX", "")
  27. .Replace("MP4-KTR", "")
  28. .Replace("mp4", "")
  29. .Replace("WEB-DL", "")
  30. .Replace("AVC", "")
  31. .Replace("[", "")
  32. .Replace("480", "")
  33. .Replace("2000", "")
  34. .Replace("]", "")
  35. .Replace("-", " ")
  36. .Replace(" + Pictures", "")
  37. .Replace("()", "")
  38. .Replace(".com", "")
  39. .Replace(".", " ")
  40. .Replace("_", " ")
  41. .Replace(" ", " ")
  42. .Replace("--", " - ")
  43. .Replace("FULL", "")
  44. .Replace("full", "")
  45. .Replace(" ", " - ");
  46.  
  47. item = item.AddSpacesToSentence().Trim();
  48.  
  49. return item;
  50. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×