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

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