Plex plugin to to play various online streams (mostly Latvian).

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @echo off
  2. :=== Parameters ===
  3. python get_version.py Contents\Code\__init__.py >Contents\VERSION
  4. set /p ver=<Contents\VERSION
  5. echo VERSION = %ver%
  6. set prog=PlayStream
  7. set pack_name=PlayStream.bundle
  8. set desc=Play online streams from various sources, mostly Latvian
  9. set release_dir=release\
  10. set feed_dir=q:\web\files\
  11. rem set ZIP=\Program Files (x86)\Gow\bin\zip.exe
  12. set ZIP="C:\Program Files\WinRAR\winrar.exe"
  13. :=== data files ===
  14. if exist "%pack_name%" rm -r -f "%pack_name%"
  15. mkdir "%pack_name%""
  16. if not exist %release_dir% mkdir %release_dir%
  17. if not exist %feed_dir% mkdir %feed_dir%
  18. for %%f in (
  19. readme.md
  20. changelog.md
  21. Contents\*.*
  22. Contents\Resources\*.*
  23. Contents\Code\*.py
  24. Contents\Libraries\Shared\*.py
  25. Contents\Libraries\Shared\content\__init__.py
  26. Contents\Libraries\Shared\content\ContentSources.py
  27. Contents\Libraries\Shared\content\playstreamproxy.py
  28. Contents\Libraries\Shared\content\Downloader.py
  29. Contents\Libraries\Shared\content\resolver.py
  30. Contents\Libraries\Shared\content\util.py
  31. Contents\Libraries\Shared\content\demjson.py
  32. Contents\Libraries\Shared\content\ordereddict.py
  33. Contents\Libraries\Shared\content\sources\__init__.py
  34. Contents\Libraries\Shared\content\sources\SourceBase.py
  35. Contents\Libraries\Shared\content\sources\cinemalive.py
  36. Contents\Libraries\Shared\content\sources\config.py
  37. Contents\Libraries\Shared\content\sources\euronews.py
  38. Contents\Libraries\Shared\content\sources\filmix.py
  39. Contents\Libraries\Shared\content\sources\filmon.py
  40. Contents\Libraries\Shared\content\sources\iplayer.py
  41. Contents\Libraries\Shared\content\sources\movieplace.py
  42. Contents\Libraries\Shared\content\sources\ltc.py
  43. Contents\Libraries\Shared\content\sources\mtgplay.py
  44. Contents\Libraries\Shared\content\sources\play24.py
  45. Contents\Libraries\Shared\content\sources\replay.py
  46. Contents\Libraries\Shared\content\sources\lmt.py
  47. Contents\Libraries\Shared\content\sources\serialguru.py
  48. Contents\Libraries\Shared\content\sources\tvdom.py
  49. Contents\Libraries\Shared\content\sources\ustvnow.py
  50. Contents\Libraries\Shared\content\sources\viaplay.py
  51. Contents\Libraries\Shared\content\sources\YouTubeVideoUrl.py
  52. Contents\Libraries\Shared\content\sources\jsinterp.py
  53. Contents\Libraries\Shared\content\sources\swfinterp.py
  54. Contents\Libraries\Shared\content\sources\streams.cfg
  55. Contents\Libraries\Shared\content\resolvers\__init__.py
  56. Contents\Libraries\Shared\content\resolvers\aadecode.py
  57. Contents\Libraries\Shared\content\resolvers\hqqresolver.py
  58. Contents\Libraries\Shared\content\resolvers\openload3.py
  59. Contents\Libraries\Shared\content\resolvers\hdgo.py
  60. Contents\Libraries\Shared\content\resolvers\kapnob.py
  61. Contents\Libraries\Shared\content\resolvers\kodik.py
  62. Contents\Libraries\Shared\content\resolvers\youtuberesolver.py
  63. ) do echo f| xcopy %%f %pack_name%\%%f
  64. "%ProgramFiles%\WinRAR\winrar.exe" x -ibck requests.zip *.* %pack_name%\Contents\Libraries\Shared
  65. if exist %release_dir%%pack_name%-%ver%.zip rm %release_dir%%pack_name%-%ver%.zip
  66. rem zip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  67. "%ProgramFiles%\WinRAR\winrar.exe" a -afzip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  68. git add %release_dir%%pack_name%-%ver%.zip
  69. if not ()==(%1%) (
  70. git commit -m %ver%
  71. git tag %ver%
  72. git push
  73. )
  74. copy %release_dir%%pack_name%-%ver%.zip %feed_dir%%pack_name%\%pack_name%-%ver%.zip /Y
  75. pause