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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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\run.py
  32. Contents\Libraries\Shared\content\demjson.py
  33. Contents\Libraries\Shared\content\ordereddict.py
  34. Contents\Libraries\Shared\content\sources\__init__.py
  35. Contents\Libraries\Shared\content\sources\SourceBase.py
  36. Contents\Libraries\Shared\content\sources\cinemalive.py
  37. Contents\Libraries\Shared\content\sources\config.py
  38. Contents\Libraries\Shared\content\sources\euronews.py
  39. Contents\Libraries\Shared\content\sources\filmix.py
  40. Contents\Libraries\Shared\content\sources\filmon.py
  41. Contents\Libraries\Shared\content\sources\iplayer.py
  42. Contents\Libraries\Shared\content\sources\movieplace.py
  43. Contents\Libraries\Shared\content\sources\ltc.py
  44. Contents\Libraries\Shared\content\sources\mtgplay.py
  45. Contents\Libraries\Shared\content\sources\play24.py
  46. Contents\Libraries\Shared\content\sources\replay.py
  47. Contents\Libraries\Shared\content\sources\lmt.py
  48. Contents\Libraries\Shared\content\sources\serialguru.py
  49. Contents\Libraries\Shared\content\sources\tvdom.py
  50. Contents\Libraries\Shared\content\sources\ustvnow.py
  51. Contents\Libraries\Shared\content\sources\viaplay.py
  52. Contents\Libraries\Shared\content\sources\YouTubeVideoUrl.py
  53. Contents\Libraries\Shared\content\sources\jsinterp.py
  54. Contents\Libraries\Shared\content\sources\swfinterp.py
  55. Contents\Libraries\Shared\content\sources\streams.cfg
  56. Contents\Libraries\Shared\content\resolvers\__init__.py
  57. Contents\Libraries\Shared\content\resolvers\aadecode.py
  58. Contents\Libraries\Shared\content\resolvers\hqqresolver.py
  59. Contents\Libraries\Shared\content\resolvers\openload3.py
  60. Contents\Libraries\Shared\content\resolvers\hdgo.py
  61. Contents\Libraries\Shared\content\resolvers\kapnob.py
  62. Contents\Libraries\Shared\content\resolvers\kodik.py
  63. Contents\Libraries\Shared\content\resolvers\youtuberesolver.py
  64. ) do echo f| xcopy %%f %pack_name%\%%f
  65. "%ProgramFiles%\WinRAR\winrar.exe" x -ibck requests.zip *.* %pack_name%\Contents\Libraries\Shared
  66. if exist %release_dir%%pack_name%-%ver%.zip rm %release_dir%%pack_name%-%ver%.zip
  67. rem zip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  68. "%ProgramFiles%\WinRAR\winrar.exe" a -afzip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  69. git add %release_dir%%pack_name%-%ver%.zip
  70. if not ()==(%1%) (
  71. git commit -m %ver%
  72. git tag %ver%
  73. git push
  74. )
  75. copy %release_dir%%pack_name%-%ver%.zip %feed_dir%%pack_name%\%pack_name%-%ver%.zip /Y
  76. pause