mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-04 05:43:17 +00:00 
			
		
		
		
	v0.11.14
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
				
			|||||||
# coding: utf-8
 | 
					# coding: utf-8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VERSION = (0, 11, 13)
 | 
					VERSION = (0, 11, 14)
 | 
				
			||||||
CODENAME = "the grid"
 | 
					CODENAME = "the grid"
 | 
				
			||||||
BUILD_DT = (2021, 6, 12)
 | 
					BUILD_DT = (2021, 6, 14)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
S_VERSION = ".".join(map(str, VERSION))
 | 
					S_VERSION = ".".join(map(str, VERSION))
 | 
				
			||||||
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
 | 
					S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -185,7 +185,7 @@ class ThumbSrv(object):
 | 
				
			|||||||
                    break
 | 
					                    break
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            with cond:
 | 
					            with cond:
 | 
				
			||||||
                cond.wait()
 | 
					                cond.wait(3)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            st = os.stat(tpath)
 | 
					            st = os.stat(tpath)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -804,7 +804,6 @@ html.light #ghead {
 | 
				
			|||||||
	content: '📂';
 | 
						content: '📂';
 | 
				
			||||||
	line-height: 0;
 | 
						line-height: 0;
 | 
				
			||||||
	font-size: 2em;
 | 
						font-size: 2em;
 | 
				
			||||||
	display: inline-block;
 | 
					 | 
				
			||||||
	margin: -.7em .1em -.5em -.3em;
 | 
						margin: -.7em .1em -.5em -.3em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#ggrid a:hover {
 | 
					#ggrid a:hover {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -86,6 +86,9 @@ var t=[]; var b=document.location.href.split('#')[0].slice(0, -1); document.quer
 | 
				
			|||||||
# get the size and video-id of all youtube vids in folder, assuming filename ends with -id.ext, and create a copyparty search query
 | 
					# get the size and video-id of all youtube vids in folder, assuming filename ends with -id.ext, and create a copyparty search query
 | 
				
			||||||
find -maxdepth 1 -printf '%s %p\n' | sort -n | awk '!/-([0-9a-zA-Z_-]{11})\.(mkv|mp4|webm)$/{next} {sub(/\.[^\.]+$/,"");n=length($0);v=substr($0,n-10);print $1, v}' | tee /dev/stderr | awk 'BEGIN {p="("} {printf("%s name like *-%s.* ",p,$2);p="or"} END {print ")\n"}' | cat >&2
 | 
					find -maxdepth 1 -printf '%s %p\n' | sort -n | awk '!/-([0-9a-zA-Z_-]{11})\.(mkv|mp4|webm)$/{next} {sub(/\.[^\.]+$/,"");n=length($0);v=substr($0,n-10);print $1, v}' | tee /dev/stderr | awk 'BEGIN {p="("} {printf("%s name like *-%s.* ",p,$2);p="or"} END {print ")\n"}' | cat >&2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# unique stacks in a stackdump
 | 
				
			||||||
 | 
					f=a; rm -rf stacks; mkdir stacks; grep -E '^#' $f | while IFS= read -r n; do awk -v n="$n" '!$0{o=0} o; $0==n{o=1}' <$f >stacks/f; h=$(sha1sum <stacks/f | cut -c-16); mv stacks/f stacks/$h-"$n"; done ; find stacks/ | sort | uniq -cw24
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##
 | 
					##
 | 
				
			||||||
## sqlite3 stuff
 | 
					## sqlite3 stuff
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user