gempir / justlog

twitch logging platform
MIT License
161 stars 38 forks source link

[Feature request] Endpoint for listing log files for channel #173

Closed Mm2PL closed 1 year ago

Mm2PL commented 2 years ago

I'd like to be able to enumerate channel logs for justgrep. The current way I do this is very inideal, I basically hit every possible file in sequence until i hit a 404 error.

I'd like for the /list endpoint to be extended to list logs for a certain channel but not user.

gempir commented 2 years ago

Okay so you mean something like

/list?channel=nymn

And it lists

{
    "availableLogs": [
        {
            "year": "2022",
            "month": "8",
            "day": "1"
        },
        {
            "year": "2016",
            "month": "4",
            "day": "31"
        }
    ]
}
Mm2PL commented 2 years ago

Yep basically.

14 sie 2022 11:15:01 gempir @.***>:

Okay so you mean something like

/list?channel=nymn

And it lists

{     "availableLogs": [         {             "year": "2022",             "month": "8",             "day": "1"         },         {             "year": "2016",             "month": "4",             "day": "31"         }     ] }

— Reply to this email directly, view it on GitHub[https://github.com/gempir/justlog/issues/173#issuecomment-1214317826], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AF62MIVVCVNSLQUMIQR4ABLVZC2ILANCNFSM56OB3PLQ]. You are receiving this because you authored the thread. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAkSURBVGiB7cExAQAAAMKg9U9tDQ+gAAAAAAAAAAAAAAAA4NQAMv0AAa3l6BAAAAAASUVORK5CYII=###24x24:true###][Obrazek śledzący][https://github.com/notifications/beacon/AF62MIWDV57CKTWIYU5Q4FTVZC2ILA5CNFSM56OB3PL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJBQQKAQ.gif]Message ID: @.***>