You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. class VideoOptions:
  2. """
  3. Store Video option constants
  4. """
  5. VideoMedias = ('DVD', 'Blu-Ray', 'VHS', 'VCD', 'TV', 'HDTV', 'WEB')
  6. badcontainers = ('ISO', 'VOB', 'MPEG', 'AVI', 'MKV', 'WMV', 'MP4')
  7. badcodecs = ('MPEG2', 'h264')
  8. badformats = badcontainers + badcodecs
  9. resolutions = ('720p', '1080i', '1080p')
  10. class Categories:
  11. """
  12. Store category constants
  13. """
  14. # Store JPS to SM Category translation, defines which JPS Cat gets uploaded to which SM Cat
  15. # key: JPS category name
  16. # value: SM category ID
  17. JPStoSM = {
  18. 'Album': 0,
  19. 'EP': 1, # Does not exist on JPS
  20. 'Single': 2,
  21. 'Bluray': 3, # Does not exist on JPS
  22. 'DVD': 4,
  23. 'PV': 5,
  24. 'Music Performance': 6, # Does not exist on JPS
  25. 'TV-Music': 7, # Music Show
  26. 'TV-Variety': 8, # Talk Show
  27. 'TV-Drama': 9, # TV Drama
  28. 'Pictures': 10,
  29. 'Misc': 11,
  30. }
  31. SM = {
  32. 'Album': 0,
  33. 'EP': 1, # Does not exist on JPS
  34. 'Single': 2,
  35. 'Bluray': 3, # Does not exist on JPS
  36. 'DVD': 4,
  37. 'PV': 5,
  38. 'Music Performance': 6, # Does not exist on JPS
  39. 'TV Music': 7, # TV-Music
  40. 'TV Variety': 8, # TV-Variety
  41. 'TV Drama': 9, # TV-Drama
  42. 'Pictures': 10,
  43. 'Misc': 11,
  44. }
  45. Video = ('Bluray', 'DVD', 'PV', 'TV-Music', 'TV-Variety', 'TV-Drama', 'Music Performance', 'Fansubs')
  46. Music = ('Album', 'Single')
  47. # JPS Categories where release date cannot be entered and therefore need to be processed differently
  48. NonDate = ('TV-Music', 'TV-Variety', 'TV-Drama', 'Fansubs', 'Pictures', 'Misc')
  49. # JPS Categories where no release data is present and therefore need to be processed differently
  50. NonReleaseData = ('Pictures', 'Misc')
  51. # Music and Music Video Torrents, for category validation. This must match the cateogry headers in JPS for an artist, hence they are in plural
  52. NonTVCategories = ('Albums', 'Singles', 'DVDs', 'PVs')
  53. # Categories that should have some of their mediainfo stripped if present, must match indices in Categories.SM
  54. SM_StripAllMediainfo = (0, 1, 2, 11) # Album, EP, Single, Misc - useful to have duration if we have it added to the description
  55. SM_StripAllMediainfoExcResolution = 10 # Pictures - useful to have resolution if we have it