Kodi plugin to to play various online streams (mostly Latvian)

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. @echo off
  2. :--- Pull content submodule ---
  3. git submodule update --init -- "resources/lib/content"
  4. rem pushd resources\lib\content
  5. rem git checkout .
  6. rem git pull
  7. rem popd
  8. :=== Parameters ===
  9. python get_version.py addon.xml >version.txt
  10. set /p ver=<version.txt
  11. echo %ver%
  12. pause
  13. set prog=PlayStream
  14. set pack_name=plugin.video.playstream
  15. set desc=Play online streams from various sources, mostly Latvian
  16. set ipk_dir=ipkg\
  17. set release_dir=release\
  18. set repo_dir=..\repo\
  19. set feed_dir=q:\web\repo\
  20. set AR=\MinGW\bin\ar.exe
  21. set TAR=\MinGW\msys\1.0\bin\tar.exe
  22. rem set ZIP=\Program Files (x86)\Gow\bin\zip.exe
  23. :=== data files ===
  24. if exist "%pack_name%" rm -r -f "%pack_name%"
  25. mkdir "%pack_name%""
  26. if not exist %release_dir% mkdir %release_dir%
  27. if not exist %repo_dir% mkdir %repo_dir%
  28. if not exist %repo_dir%%pack_name% mkdir %repo_dir%%pack_name%
  29. for %%f in (
  30. readme.md
  31. changelog.md
  32. addon.xml
  33. addon.py
  34. context_menu.py
  35. context_download.py
  36. service.py
  37. icon.png
  38. kodiswift\*.py
  39. resources\__init__.py
  40. resources\settings.xml
  41. resources\icon.png
  42. resources\language\English\*
  43. resources\lib\__init__.py
  44. resources\lib\content\__init__.py
  45. resources\lib\content\ContentSources.py
  46. resources\lib\content\playstreamproxy.py
  47. resources\lib\content\Downloader.py
  48. resources\lib\content\resolver.py
  49. resources\lib\content\util.py
  50. resources\lib\content\run.py
  51. resources\lib\content\demjson.py
  52. resources\lib\content\ordereddict.py
  53. resources\lib\content\sources\__init__.py
  54. resources\lib\content\sources\SourceBase.py
  55. resources\lib\content\sources\cinemalive.py
  56. resources\lib\content\sources\config.py
  57. resources\lib\content\sources\euronews.py
  58. resources\lib\content\sources\filmix.py
  59. resources\lib\content\sources\filmon.py
  60. resources\lib\content\sources\iplayer.py
  61. resources\lib\content\sources\movieplace.py
  62. resources\lib\content\sources\ltc.py
  63. resources\lib\content\sources\mtgplay.py
  64. resources\lib\content\sources\play24.py
  65. resources\lib\content\sources\replay.py
  66. resources\lib\content\sources\lmt.py
  67. resources\lib\content\sources\serialguru.py
  68. resources\lib\content\sources\tvdom.py
  69. resources\lib\content\sources\ustvnow.py
  70. resources\lib\content\sources\viaplay.py
  71. resources\lib\content\sources\viaplay.py
  72. resources\lib\content\sources\YouTubeVideoUrl.py
  73. resources\lib\content\sources\jsinterp.py
  74. resources\lib\content\sources\swfinterp.py
  75. resources\lib\content\sources\streams.cfg
  76. resources\lib\content\resolvers\__init__.py
  77. resources\lib\content\resolvers\aadecode.py
  78. resources\lib\content\resolvers\hqqresolver.py
  79. resources\lib\content\resolvers\openload3.py
  80. resources\lib\content\resolvers\hdgo.py
  81. resources\lib\content\resolvers\kapnob.py
  82. resources\lib\content\resolvers\kodik.py
  83. resources\lib\content\resolvers\cloudsany.py
  84. resources\lib\content\resolvers\youtuberesolver.py
  85. ) do echo f| xcopy %%f %pack_name%\%%f
  86. xcopy /y /q resources\lib\content\picons\* %pack_name%\resources\picons\
  87. pause
  88. if exist %release_dir%%pack_name%-%ver%.zip rm %release_dir%%pack_name%-%ver%.zip
  89. rem zip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  90. "C:\Program Files\WinRAR\winrar.exe" a -afzip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  91. copy addon.xml %repo_dir%%pack_name%\addon.xml /Y
  92. copy %release_dir%%pack_name%-%ver%.zip %repo_dir%%pack_name%\%pack_name%-%ver%.zip /Y
  93. python -c "import hashlib; print hashlib.md5(open(r'%repo_dir%%pack_name%\%pack_name%-%ver%.zip','r').read()).hexdigest()" >%repo_dir%%pack_name%\%pack_name%-%ver%.zip.md5
  94. git add %release_dir%%pack_name%-%ver%.zip
  95. if not ()==(%1%) (
  96. git commit -m %ver%
  97. git tag -d "%ver%"
  98. git tag %ver%
  99. git push
  100. pushd %repo_dir%..
  101. call update_repo.bat
  102. xcopy /s /y repo %feed_dir%
  103. popd
  104. )
  105. pause