Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

64 linhas
2.4 KiB

  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