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

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