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

pmake.bat 3.7KB

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