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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @echo off
  2. :--- Pull content submodule ---
  3. pushd resources\lib\content
  4. git commit -a -m labojumi
  5. git checkout .
  6. git pull
  7. 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. downloadqueue.py
  37. service.py
  38. icon.png
  39. kodiswift\*.py
  40. resources\__init__.py
  41. resources\settings.xml
  42. resources\icon.png
  43. resources\language\English\*
  44. resources\lib\__init__.py
  45. resources\lib\content\__init__.py
  46. resources\lib\content\ContentSources.py
  47. resources\lib\content\playstreamproxy.py
  48. resources\lib\content\Downloader.py
  49. resources\lib\content\resolver.py
  50. resources\lib\content\util.py
  51. resources\lib\content\run.py
  52. resources\lib\content\file.py
  53. resources\lib\content\demjson.py
  54. resources\lib\content\ordereddict.py
  55. resources\lib\content\sources\__init__.py
  56. resources\lib\content\sources\SourceBase.py
  57. resources\lib\content\sources\cinemalive.py
  58. resources\lib\content\sources\config.py
  59. resources\lib\content\sources\euronews.py
  60. resources\lib\content\sources\filmix.py
  61. resources\lib\content\sources\filmon.py
  62. resources\lib\content\sources\iplayer.py
  63. resources\lib\content\sources\movieplace.py
  64. resources\lib\content\sources\ltc.py
  65. resources\lib\content\sources\mtgplay.py
  66. resources\lib\content\sources\play24.py
  67. resources\lib\content\sources\replay.py
  68. resources\lib\content\sources\lmt.py
  69. resources\lib\content\sources\serialguru.py
  70. resources\lib\content\sources\tvdom.py
  71. resources\lib\content\sources\ustvnow.py
  72. resources\lib\content\sources\viaplay.py
  73. resources\lib\content\sources\filmas.py
  74. resources\lib\content\sources\tvplay.py
  75. resources\lib\content\sources\enigma2.py
  76. resources\lib\content\sources\YouTubeVideoUrl.py
  77. resources\lib\content\sources\jsinterp.py
  78. resources\lib\content\sources\swfinterp.py
  79. resources\lib\content\sources\streams.cfg
  80. resources\lib\content\resolvers\__init__.py
  81. resources\lib\content\resolvers\aadecode.py
  82. resources\lib\content\resolvers\hqqresolver.py
  83. resources\lib\content\resolvers\openload3.py
  84. resources\lib\content\resolvers\hdgo.py
  85. resources\lib\content\resolvers\kapnob.py
  86. resources\lib\content\resolvers\kodik.py
  87. resources\lib\content\resolvers\cloudsany.py
  88. resources\lib\content\resolvers\youtuberesolver.py
  89. ) do echo f| xcopy %%f %pack_name%\%%f
  90. xcopy /y /q resources\lib\content\picons\* %pack_name%\resources\picons\
  91. pause
  92. if exist %release_dir%%pack_name%-%ver%.zip rm %release_dir%%pack_name%-%ver%.zip
  93. rem zip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  94. "C:\Program Files\WinRAR\winrar.exe" a -afzip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  95. copy addon.xml %repo_dir%%pack_name%\addon.xml /Y
  96. copy %release_dir%%pack_name%-%ver%.zip %repo_dir%%pack_name%\%pack_name%-%ver%.zip /Y
  97. 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
  98. git add %release_dir%%pack_name%-%ver%.zip
  99. rm -r -f "%pack_name%"
  100. if not ()==(%1%) (
  101. git commit -m %ver%
  102. git tag -d %ver%
  103. git tag %ver%
  104. git push
  105. pushd %repo_dir%..
  106. call update_repo.bat
  107. rem xcopy /s /y /u repo %feed_dir%
  108. robocopy repo %feed_dir% addons.* /copy:dat
  109. robocopy repo\%pack_name% q:\web\repo\%pack_name% /copy:DAT /xo
  110. popd
  111. )
  112. pause