Added github download redirect handler for raw.githubusercontent.com

This commit is contained in:
frikky
2021-12-31 16:54:12 +01:00
parent e386709118
commit 5342a19e38
8 changed files with 27 additions and 85 deletions
+5 -1
View File
@@ -73,13 +73,17 @@ class AppBase:
self.logger.info("[DEBUG] Already JSON-like. Returning from magic")
return input_data
if len(input_data) < 3:
self.logger.info("[DEBUG] Too short input data")
return input_data
# Don't touch large data.
if len(input_data) > 100000:
self.logger.info("[DEBUG] Value too large. Returning from magic")
return input_data
if not "\n" in input_data and not "," in input_data:
self.logger.info("[DEBUG] No data to autoparse")
self.logger.info("[DEBUG] No data to autoparse - requires newline or comma")
return input_data
new_input = input_data
+1 -1
View File
@@ -3,7 +3,7 @@
### DEFAULT
NAME=shuffle-app_sdk
VERSION=0.9.40
VERSION=0.9.44
docker rmi docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION --force
docker build . -f Dockerfile -t frikky/shuffle:app_sdk -t frikky/$NAME:$VERSION -t docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION -t ghcr.io/frikky/$NAME:$VERSION -t ghcr.io/frikky/$NAME:nightly