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

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