Welcome Guest ( Log In | Register )

6 Pages V « < 2 3 4 5 6 >  
Closed TopicStart new topic
> New Feature: Resample Archives, Itty bitty

 
post Aug 9 2016, 22:34
Post #61
Applejacku



Newcomer
*
Group: Gold Star Club
Posts: 34
Joined: 21-December 14
Level 380 (Godslayer)


Where do I put the file after I download it with archiver, for H@H?

Downloaded? As zip or unzipped?

This post has been edited by Applejacku: Aug 9 2016, 22:46
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 9 2016, 23:02
Post #62
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(Jay Low @ Aug 9 2016, 19:57) *
How can I use the API to create the galleryinfo.txt file?
I could not find any galleryinfo.txt, since i do not run H@H for a ling time but this should be pretty similar:
CODE
#!/bin/sh

if [ "$1x" = "x" ]; then
    exit
fi

# http://g.e-hentai.org/g/{gallery_id}/{gallery_token}/
ITEM=`echo $1 | cut -d/ -f 5,6 | sed -e 's/\//,"/' -e 's/$/"/'`
API='http://g.e-hentai.org/api.php'
CT='Content-Type: application/json'
LIST="[ [$ITEM] ]"
DATA="{\"method\":\"gdata\",\"gidlist\":$LIST,\"namespace\":1}"

curl -H "$CT" -X POST -d "$DATA" $API"" 2>/dev/null |
jq '.gmetadata| .[]| .title, .title_jpn, .category, .filecount, .rating, .tags'

Example output
CODE
$ ./ehinfo.sh https://g.e-hentai.org/g/963496/ff610537d1/
"[Kizaruya (Kizaru)] MesuIki 2 ~Ijimekko ga Choushi ni Notteiru node Shikaeshi shitemita!~"
"[黄猿屋 (黄猿)] メスイキ2 いじめっこが調子に乗ってるので仕返ししてみた!"
"Doujinshi"
"17"
"4.57"
[
  "parody:kantai collection",
  "character:shimakaze",
  "group:kizaruya",
  "artist:kizaru",
  "male:yaoi",
  "male:cosplaying",
  "male:tomgirl",
  "male:anal",
  "male:stockings",
  "male:males only",
  "male:shotacon",
  "male:ahegao",
  "male:crossdressing",
  "mosaic censorship"
]
Requires bash, curl and jq

QUOTE
Where do I put the file after I download it with archiver, for H@H?
You don't. That's not meant to increase cache. Increasing cache by files in the same gallery in harmful now that we have static ranges.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 10 2016, 11:09
Post #63
tetron



Certified Retard!
*********
Group: Gold Star Club
Posts: 5,583
Joined: 30-July 14
Level 488 (Godslayer)


QUOTE(Tenboro @ Aug 9 2016, 18:37) *
No.
The next question: Do you have any plan of adding that feature?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 10 2016, 19:19
Post #64
sakuracircle



Casual Poster
***
Group: Gold Star Club
Posts: 154
Joined: 21-May 10
Level 291 (Godslayer)


I just noticed the update today. I want to ask since I leave my H@H client on a remote PC: Do I have to re-download the client, or restart it, or is it just fine letting it continue to run as it always do?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 10 2016, 23:59
Post #65
Tenboro

Admin




QUOTE(tetron @ Aug 10 2016, 11:09) *

The next question: Do you have any plan of adding that feature?


Nah.

Because the quota isn't calculated outside of the context of the archiver, and the popup doesn't need more clutter.

And because it's a soft limit where everyone who has a quota also has plenty of GP to burn on downloading past it.

And because whenever there's a quota for anything, there are always people who feel they have to use it, and there's no particular need to give people a readout to see just how much they aren't using.

QUOTE(TennoujiSaburou @ Aug 10 2016, 19:19) *

I just noticed the update today. I want to ask since I leave my H@H client on a remote PC: Do I have to re-download the client, or restart it, or is it just fine letting it continue to run as it always do?


Nothing has changed with the client, this was solely a server-side change.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 11 2016, 01:21
Post #66
hzqr



Savagely Still
********
Group: Gold Star Club
Posts: 4,672
Joined: 13-May 09
Level 462 (Dovahkiin)


[gist.github.com] https://gist.github.com/anonymous/d7c995536...b2f6327622e2b08

^ Adds a button to automatically generate a galleryinfo.txt file from a gallery (can be installed by clicking on the "Raw" button, you'll probably need either Greasemonkey or Tampermonkey)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 12 2016, 15:32
Post #67
G Just G



Casual Poster
****
Group: Members
Posts: 415
Joined: 27-October 08
Level 184 (Lord)


VBScript to call the API - prompts for Gallery ID and Token ID outputs to directory where the .vbs file is saved. This will work with any Windows machine.

CODE

GIDInput = UserInput( "Enter GID (Gallery ID):" )
TokenInput = UserInput( "Enter Token ID:" )
Dim objXmlHttpMain , URL

output=left(WScript.ScriptFullName,(Len(WScript.ScriptFullName))-(len(WScript.ScriptName)))
output=output&"\galleryinfo.txt"

strJSONToSend = "{  ""method"": ""gdata"",  ""gidlist"": [      ["""&GIDInput&""","""&TokenInput&"""]  ],  ""namespace"": 1}"
URL="http://g.e-hentai.org/api.php"
'Set objXmlHttpMain = CreateObject("Msxml2.ServerXMLHTTP")
Set objXmlHttpMain = CreateObject("Msxml2.XMLHTTP.6.0")
'on error resume next

objXmlHttpMain.open "POST",URL, False
'objXmlHttpMain.setRequestHeader "Authorization", "Bearer <api secret id>"
objXmlHttpMain.setRequestHeader "Content-Type", "application/json"


objXmlHttpMain.send strJSONToSend

modify = objXmlHttpMain.responseText

modify = Replace(modify,"\u2606"," ")
modify = Replace(modify,"\u7d05"," ")
modify = Replace(modify,"\u697c"," ")
modify = Replace(modify,"\u59228"," ")


'Do this last!
modify = Replace(modify,"\","")

'wscript.echo modify
Set objStream = CreateObject("ADODB.Stream")
objStream.CharSet = "utf-8"
objStream.Open
objstream.writetext(modify)
objStream.SaveToFile output, 2





Function UserInput( myPrompt )
' This function prompts the user for some input.
' When the script runs in CSCRIPT.EXE, StdIn is used,
' otherwise the VBScript InputBox( ) function is used.
' myPrompt is the the text used to prompt the user for input.
' The function returns the input typed either on StdIn or in InputBox( ).
' Written by Rob van der Woude
' [url=http://www.robvanderwoude.com]http://www.robvanderwoude.com[/url]
    ' Check if the script runs in CSCRIPT.EXE
    If UCase( Right( WScript.FullName, 12 ) ) = "\CSCRIPT.EXE" Then
        ' If so, use StdIn and StdOut
        WScript.StdOut.Write myPrompt & " "
        UserInput = WScript.StdIn.ReadLine
    Else
        ' If not, use InputBox( )
        UserInput = InputBox( myPrompt )
    End If
End Function


This post has been edited by G Just G: Aug 12 2016, 15:37
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 12 2016, 20:59
Post #68
mathwizi2005



Newcomer
*
Group: Recruits
Posts: 15
Joined: 17-May 12
Level 39 (Apprentice)


I'd still like to add new releases to my cache w/o having to enable my proxy.
I have 13+GB of storage and I want to host and support releases I enjoy. Currently, there is no documented way of doing this since H@HDL is gone, which did just that.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 12 2016, 21:01
Post #69
Tenboro

Admin




QUOTE(mathwizi2005 @ Aug 12 2016, 20:59) *

I'd still like to add new releases to my cache w/o having to enable my proxy.
I have 13+GB of storage and I want to host and support releases I enjoy. Currently, there is no documented way of doing this since H@HDL is gone, which did just that.


Using the H@H Downloader didn't do that any more, it just added unnecessary files that would rarely if ever be used.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2016, 01:27
Post #70
mathwizi2005



Newcomer
*
Group: Recruits
Posts: 15
Joined: 17-May 12
Level 39 (Apprentice)


Still doesn't solve my issue of a lack of the ability to send new releases to my cache for hosting.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2016, 01:50
Post #71
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(mathwizi2005 @ Aug 13 2016, 00:27) *
Still doesn't solve my issue of a lack of the ability to send new releases to my cache for hosting.
If you can explain and/or argue why that is an issue you amy get a better answer.

Static ranges do a much better job at (1) generating hath, (2) reducing server load, and (3) faster user experience in the galleries.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2016, 01:52
Post #72
Tenboro

Admin




QUOTE(mathwizi2005 @ Aug 13 2016, 01:27) *

Still doesn't solve my issue of a lack of the ability to send new releases to my cache for hosting.


What I'm saying is those files would go largely unused anyway, so the removal of the H@H Downloader did little to affect that situation. Over 98% of all H@H requests are currently served using static ranges, so clients that did preloading would fight over the remaining 2%.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2016, 10:45
Post #73
Jay Low



Casual Poster
****
Group: Members
Posts: 435
Joined: 9-July 12
Level 281 (Lord)


I've been trying to find this but I'm really having trouble here.

How do I do partial gallery downloads?

I used to do that with H@H downloader but I can't find any way of doing that now.

By the way,
QUOTE(hzqr @ Aug 11 2016, 00:21) *

[gist.github.com] https://gist.github.com/anonymous/d7c995536...b2f6327622e2b08

^ Adds a button to automatically generate a galleryinfo.txt file from a gallery (can be installed by clicking on the "Raw" button, you'll probably need either Greasemonkey or Tampermonkey)

Thank you.

This post has been edited by Jay Low: Aug 13 2016, 10:48
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 14 2016, 03:35
Post #74
EsotericSatire



Look, Fat.
***********
Group: Catgirl Camarilla
Posts: 12,511
Joined: 31-July 10
Level 500 (Ponyslayer)


QUOTE(Tenboro @ Aug 5 2016, 06:09) *

For people who run H@H, the archiver quota is now increased by +1000 MB/day for running at least one qualifying client, in addition to +10 MB/day per total adjusted avghit. H@H clients will only qualify if they have been running for more than 24 hours and have a hitrate of at least 1. (See; H@H Archiver Quota in the MFP section below)


QUOTE(Luna_Flina @ Aug 6 2016, 02:51) *

Most people also contribute to H@H (I don't), so they also benefit from the new feature:
...which means you get at least 7*(1000+(10*total_avghits)) extra MB over 168 hours, even if you did not donate at all.


Adopt-a-Server Days: 26,224

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 16 2016, 12:21
Post #75
tongkai



Newcomer
*
Group: Recruits
Posts: 11
Joined: 1-March 11
Level 490 (Godslayer)


Update always good, but I'm the one who miss the galleryinfo.txt and (Gallery ID) behind the file name

They help me a lot to search by system index and tell me I'm not download the gallery twice or there are gallery with same name or with update image

I found that there are some gallery will change the name, I know it because they have the same Gallery ID, but now I will download it twice because the ZIP didn't keep any Gallery ID or tracking

This post has been edited by tongkai: Aug 16 2016, 12:24
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 17 2016, 17:22
Post #76
lollos



Newcomer
*
Group: Recruits
Posts: 13
Joined: 11-July 06
Level 55 (Expert)


tenboro, any chance to reintroduce h@h (hathdl file)? i run he proxy for years and downloaded/uploaded gallery form proxy was really usefull.
please remember of us :C
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 18 2016, 00:07
Post #77
Maximum_Joe



Legendary Poster
***********
Group: Gold Star Club
Posts: 24,074
Joined: 17-April 11
Level 500 (Dovahkiin)


The proxy still exists.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 18 2016, 00:42
Post #78
Tenboro

Admin




QUOTE(lollos @ Aug 17 2016, 17:22) *

tenboro, any chance to reintroduce h@h (hathdl file)?


The current version doesn't support the new resampling system or any of the recent galleries with files over 10 MB, and future versions of H@H are likely to only store static range files, so it's very unlikely that .hathdl will be reintroduced.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 18 2016, 14:28
Post #79
EsotericSatire



Look, Fat.
***********
Group: Catgirl Camarilla
Posts: 12,511
Joined: 31-July 10
Level 500 (Ponyslayer)


Lord Tenboro, can we get 50mb download limit per active adopt a server slot?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 18 2016, 18:46
Post #80
Tenboro

Admin




QUOTE(EsotericSatire @ Aug 18 2016, 14:28) *

Lord Tenboro, can we get 50mb download limit per active adopt a server slot?


Hmm. That wasn't really possible before, and I didn't think to include that in the new system, but sure, that seems fair. 50 MB seems a bit cheap though, seeing as an Adopt-a-Server slot is generally counted as a standard H@H client with a hitrate of 50.

So, what I did is simply make the system do the same for the archiver quota calculation. Which means they'll unlock the same +1000 MB/day base bonus as you'd otherwise get for running H@H, and add +500 MB/day per slot until you hit the soft cap.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


6 Pages V « < 2 3 4 5 6 >
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 2nd April 2025 - 16:52