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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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=w:\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. icon.png
  29. kodiswift\*.py
  30. resources\__init__.py
  31. resources\settings.xml
  32. resources\icon.png
  33. resources\language\English\*
  34. resources\lib\__init__.py
  35. resources\lib\ContentSources.py
  36. resources\lib\resolver.py
  37. resources\lib\util.py
  38. resources\lib\demjson.py
  39. resources\lib\ordereddict.py
  40. resources\lib\sources\__init__.py
  41. resources\lib\sources\SourceBase.py
  42. resources\lib\sources\cinemalive.py
  43. resources\lib\sources\config.py
  44. resources\lib\sources\euronews.py
  45. resources\lib\sources\filmix.py
  46. resources\lib\sources\filmon.py
  47. resources\lib\sources\iplayer.py
  48. resources\lib\sources\movieplace.py
  49. resources\lib\sources\ltc.py
  50. resources\lib\sources\mtgplay.py
  51. resources\lib\sources\play24.py
  52. resources\lib\sources\replay.py
  53. resources\lib\sources\serialguru.py
  54. resources\lib\sources\tvdom.py
  55. resources\lib\sources\ustvnow.py
  56. resources\lib\sources\viaplay.py
  57. resources\lib\sources\viaplay.py
  58. resources\lib\sources\YouTubeVideoUrl.py
  59. resources\lib\sources\jsinterp.py
  60. resources\lib\sources\swfinterp.py
  61. resources\lib\sources\streams.cfg
  62. resources\lib\resolvers\__init__.py
  63. resources\lib\resolvers\aadecode.py
  64. resources\lib\resolvers\hqqresolver.py
  65. resources\lib\resolvers\openload3.py
  66. resources\lib\resolvers\hdgo.py
  67. resources\lib\resolvers\kapnob.py
  68. resources\lib\resolvers\kodik.py
  69. resources\lib\resolvers\youtuberesolver.py
  70. ) do echo f| xcopy %%f %pack_name%\%%f
  71. if exist %release_dir%%pack_name%-%ver%.zip rm %release_dir%%pack_name%-%ver%.zip
  72. rem zip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  73. "C:\Program Files\WinRAR\winrar.exe" a -afzip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  74. copy addon.xml %repo_dir%%pack_name%\addon.xml /Y
  75. copy %release_dir%%pack_name%-%ver%.zip %repo_dir%%pack_name%\%pack_name%-%ver%.zip /Y
  76. 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
  77. git add %release_dir%%pack_name%-%ver%.zip
  78. if not ()==(%1%) (
  79. git commit -m %ver%
  80. git tag %ver%
  81. )
  82. git push
  83. pushd %repo_dir%..
  84. call update_repo.bat
  85. xcopy /s /y repo %feed_dir%
  86. popd
  87. pause