From f73c4617110c438b96cdfdc1a68e4c2e4d97cde1 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Sun, 3 Oct 2021 06:19:51 +0000 Subject: [PATCH] Renamed project to imgin Corrected home page --- .gitignore | 2 +- {imgmine => imgin}/__init__.py | 0 imgin/config.py | 4 ++++ {imgmine => imgin}/get.py | 0 {imgmine => imgin}/web/gallery.html | 2 +- {imgmine => imgin}/web/index.html | 6 +++--- {imgmine => imgin}/web/theme.css | 0 imgmine/__pycache__/__init__.cpython-39.pyc | Bin 2096 -> 0 bytes imgmine/__pycache__/config.cpython-39.pyc | Bin 282 -> 0 bytes imgmine/__pycache__/get.cpython-39.pyc | Bin 2114 -> 0 bytes imgmine/config.py | 4 ---- run.py | 4 ++-- 12 files changed, 11 insertions(+), 11 deletions(-) rename {imgmine => imgin}/__init__.py (100%) create mode 100644 imgin/config.py rename {imgmine => imgin}/get.py (100%) rename {imgmine => imgin}/web/gallery.html (94%) rename {imgmine => imgin}/web/index.html (89%) rename {imgmine => imgin}/web/theme.css (100%) delete mode 100644 imgmine/__pycache__/__init__.cpython-39.pyc delete mode 100644 imgmine/__pycache__/config.cpython-39.pyc delete mode 100644 imgmine/__pycache__/get.cpython-39.pyc delete mode 100644 imgmine/config.py diff --git a/.gitignore b/.gitignore index abcb1cb..9556ed4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ venv/* -helloworld/__pycache__/* +imgin/__pycache__/* testdata/* .vscode/* diff --git a/imgmine/__init__.py b/imgin/__init__.py similarity index 100% rename from imgmine/__init__.py rename to imgin/__init__.py diff --git a/imgin/config.py b/imgin/config.py new file mode 100644 index 0000000..ff340c7 --- /dev/null +++ b/imgin/config.py @@ -0,0 +1,4 @@ +IMAGE_CACHE = '/tmp/imgin-imgur-images/' +SINGLE_IMAGE_DELETE_AFTER_SECS = 60 +ALBUM_DELETE_AFTER_SECS = 120 +template_dir = 'imgin/web/' \ No newline at end of file diff --git a/imgmine/get.py b/imgin/get.py similarity index 100% rename from imgmine/get.py rename to imgin/get.py diff --git a/imgmine/web/gallery.html b/imgin/web/gallery.html similarity index 94% rename from imgmine/web/gallery.html rename to imgin/web/gallery.html index 4eff7b8..f556b57 100644 --- a/imgmine/web/gallery.html +++ b/imgin/web/gallery.html @@ -4,7 +4,7 @@ - imgmine - minimal & private imgur proxy + imgin - minimal & private imgur proxy diff --git a/imgmine/web/index.html b/imgin/web/index.html similarity index 89% rename from imgmine/web/index.html rename to imgin/web/index.html index fe4b2f6..9932019 100644 --- a/imgmine/web/index.html +++ b/imgin/web/index.html @@ -4,18 +4,18 @@ - imgmine - minimal & private imgur proxy + imgin - minimal & private imgur proxy

- imgmine + imgin


A minimalist read-only Imgur proxy insipired by software like Invidious, Nitter, and Bibliogram. - This service does not use the official + This service does not use the official Imgur API because I reject the notion that normal HTTP GET isn't a valid way to access a public website.

This project was started because Kevin Froman got fed up with Imgur breaking with Tor because of cow-dung JS. diff --git a/imgmine/web/theme.css b/imgin/web/theme.css similarity index 100% rename from imgmine/web/theme.css rename to imgin/web/theme.css diff --git a/imgmine/__pycache__/__init__.cpython-39.pyc b/imgmine/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index f565fbaddcac252910c62903b2285727e7375932..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2096 zcma)7OK%%D5GJ_~N!Ch{AF-8}Ezx2ji;T3%a@XNf zZY;f6a|u_|I%K2%DK0kIz!oxYv<5i@Z)ee%NY*8;dUyODFV;ke}3vb^$7VJ z2PYpF2H!%a!OHVAT!P=k@U6mhFF~wyUOF9mEG7^1zu1^UQ{JsvN|uG zQe|GYvL6R3;DMD3aYa>m)yl>AoT~AfnXT!QfopRw{3$g_MF)LaJ5 z0%&fCy0~C9S3q+SG&jYi6PnAQxh1ZMMQgJtu8Jk_b5&g1B#q^_n7;t%bQ`}N3?lJmgXNx12S(lkn3jOktSYyB6t@9uje@3n83aNe+yGji9+ z^HozY#XpH~|6;-$vp?$lzA24-__pvEDCojFb|^_|cS!bP6)1@B&(KDNr&A+G_^&7& zNufP-nw@4&Z@;6>VbJTuvDAAjeWT)>YRHotsb1D7=T2s{#)8n(2sMNfKwgr`KuHa$ z%?nyWj=M5<(;b=UIkc$)a5&OLNZlyrED|_+9zyRxuj{x5?dA^n;YEOOHzVj04uzH^D$J1K`2n_osdO zlf`d=$;2zuw?Q6OnujObT#Lk6rx>8!J5tq<5ik%O()Ph5Wzb!LiPO#shijsTBX27p z4-3Gk|L;eCf@^<@@EO9=F<=@su88f>!_bGNRqyN`juVGTGUPSX7gp9An$?X1X*{Yh zkR}P$AA@1T(*@{qU%rSklbs+p9&Ur`tI(YaDfjv^j?*t-Ci4M^Qw6H&RgliG>bUm5 zg4tnUs~>(5k4ZA)LL_^OM|GL7Rbm{t8(`MB0=Z{@C6<4=-;=vCF%8OnsDfQ6B~Rnh zHr{;t9#Em3ntSOW5iPA#tuZc*Og<6&5)Lgj1E7gE;bf_=L7kx~p^OIb`n1S2?ye2{ zzXAP+yCr=G<}`9gI{>@{H+8ok!WEL2jJ?gHq^I#*a+YQq{-IPopz03HG-G;3-yiDxX!~JfWJc)Xf^TKM^vk3Oeu~m-6X1Q+(WDm#g s>4W(wuBlWEpd7IRv(EuA4@GEmm=PAR+N7s-r&#eJLxBU$J<%8b1=8K7tN;K2 diff --git a/imgmine/__pycache__/config.cpython-39.pyc b/imgmine/__pycache__/config.cpython-39.pyc deleted file mode 100644 index eb6652bd709d8179afe8317e73f3bdf56354cfb5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 282 zcmYe~<>g`kg5w(^61#x(V-N=!FakLaKwK;WBvKfn7*ZIc7*m*{m{ORdm{VAS88lg| zr1VR23-mK{({nTPQgwlJX%Uc2OiwM=e`y2M_Ob#HBH2+~W51b#!-) zcXo94aJ?lL?CIz3;~EbUb8+=?4RMWkbPI6}iVt>m4!$Ms=;IXX8;>c$Q<9onkds)F z8lRF`w34BS9cUMr_@$zsk)NBYUs{}61almmPR`Fu%S_iRsJz8tlbfGXnv-e=@@X*} JkYHg1K>++NOO^lt diff --git a/imgmine/__pycache__/get.cpython-39.pyc b/imgmine/__pycache__/get.cpython-39.pyc deleted file mode 100644 index 2ee801be49c1b99b962e66d01ac36b9317154f0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2114 zcmZuy%WoS+7@wJac>PKo*KJ5C!HtkwBN3+vfm8wNBTiM(=0H-FE>zLRGqyL{S7*iz zUfBpKL5h$30sJ#_-~gxI%cYm{%{UEx&1mQO?f3Y7j|r;P5`u>R{4Vf3g#OW+ zSDOu+EAWY*V4#TN2>E&@5sryZuwGk{72CdT)^_B?uJ4*PjtYLk{Nwo^%uZB{OMVIN zTv~|AamBC1Rlf>*j}{*xe~y-D8RmIfW6){!H$vy={3FL-pm+c7?hLoFp=ES>xGRlVw5q3)DSz;(2s9YsBJ*E`u4CpOSov;;hR zV0ifp;5oJru{Z-Xm1C||ps{siP6@3oX}$}TObN_&J!?IrGsaI4odX`HDEfsgp(p5f zi#86(uPYO0>>RnWa0Jq)c(16Ty$g`q&<`w(lG-IC{#rAkqk{*dF*zjsV_A~rcX91w zdipUrs%Xa?;-mqZo|$PXt4DJua^~qG*zU^O*gaaH?@ckCr%R8?I=cV&4`fo9czKPU z9eecsC5@y7LA(M%TtCF4pJ!n#PtkK4wR<4t!Nx48LDmQ30$92{w!lK$qy(lPYCXpm zZJyXpv_EF3yncR+NpV~}#>9FjCiP1oRXlqG70fqYqVhV|*D-mpVFLF2W?mminTgA7 zoi0PZ+D+rOg3JwNGf8DLh<1nZhAQ-fC}Mo1aFBa&WsY;J9kjQ7dpAn^d8Hi%qjV_S zW>Dolfn0pgK@^w?5mY-nn;$& zJ3LysZ)zimk-0n5QWcJ`^9$G0VMGlI>8=dIqzQ@G?4`U(jUtTBBdZR8muCS|xr)Gh5Vr+*zUYi#=U#cXau24C2ZH|M|AijGZoAN<~abf%jFXJ`r;)_7hz-OTt*YKR7Y>>0~9R3vU z496DUZq<1WID!=eFf!s$@sJ{^m^~9kfE3<4fP4nc1-RucL*Hi)!R6+8Q7(A67xv9F y!}Sw3!%$aWsN9kpVXv5^-wAHYwD)D4(qY8D){mcPz@QC+PP9oCQX^i`v;PD8>=9c4 diff --git a/imgmine/config.py b/imgmine/config.py deleted file mode 100644 index 5cc0401..0000000 --- a/imgmine/config.py +++ /dev/null @@ -1,4 +0,0 @@ -IMAGE_CACHE = '/tmp/imgmine-imgur-images/' -SINGLE_IMAGE_DELETE_AFTER_SECS = 60 -ALBUM_DELETE_AFTER_SECS = 120 -template_dir = 'imgmine/web/' \ No newline at end of file diff --git a/run.py b/run.py index 834f28a..f10ff40 100644 --- a/run.py +++ b/run.py @@ -1,3 +1,3 @@ -import imgmine +import imgin -imgmine.start_server() \ No newline at end of file +imgin.start_server() \ No newline at end of file