feat(l2s): add start of hickman list

This commit is contained in:
matt1432 2025-05-27 20:44:31 -04:00
parent 6af1a1a23e
commit 70af730142
2 changed files with 78 additions and 1 deletions
apps/list2series

View file

@ -225,6 +225,74 @@
"readlistId": "0KFP4H1Y0XTSH",
"seriesId": "0KFP7H2NWXTJ5",
"issues": [
{
"series": "Secret Warriors: Nick Fury, Agent of Nothing",
"title": "Secret Warriors: Nick Fury, Agent of Nothing"
},
{
"series": "Dark Reign: Fantastic Four",
"title": "TPB"
},
{
"series": "Dark Reign: The Cabal",
"title": "Issue #1"
},
{
"series": "Secret Warriors: God of Fear, God of War",
"title": "Secret Warriors: God of Fear, God of War"
},
{
"series": "Secret Warriors: Wake the Beast",
"title": "Secret Warriors: Wake the Beast"
},
{
"series": "Fantastic Four By Jonathan Hickman",
"title": "Solve Everything"
},
{
"series": "Fantastic Four By Jonathan Hickman",
"title": "Prime Elements"
},
{
"series": "S.H.I.E.L.D.: Architects of Forever",
"title": "HC/TPB"
},
{
"series": "Fantastic Four By Jonathan Hickman",
"title": "The Future Foundation"
},
{
"series": "Secret Warriors: Last Ride of the Howling Commandos",
"title": "Secret Warriors: Last Ride of the Howling Commandos"
},
{
"series": "Secret Warriors: Night",
"title": "Volume 5"
},
{
"series": "Fantastic Four By Jonathan Hickman",
"title": "Three"
},
{
"series": "Secret Warriors: Wheels Within Wheels",
"title": "Volume 6"
},
{
"series": "S.H.I.E.L.D. by Hickman & Weaver: The Human Machine",
"title": "HC"
},
{
"series": "FF by Jonathan Hickman",
"title": "Volume One"
},
{
"series": "Fantastic Four by Jonathan Hickman: The Complete Collection",
"title": "Volume 3"
},
{
"series": "Fantastic Four by Jonathan Hickman: The Complete Collection",
"title": "Volume 4"
},
{
"series": "List Redirects",
"title": "AvX - Redirect"

View file

@ -173,11 +173,20 @@ const setBookMetadata = async(i: number, source: Book, target: Book): Promise<vo
});
};
const getListBooks = async(listId: string): Promise<{
const getListBooks = async(listKeyOrId: string): Promise<{
list: ReadList
seriesPath: string
listBooks: Book[]
}> => {
let listId = listKeyOrId;
const listMappings = readNeighborFile('lists.json') as ListsJson;
// support giving key instead of ID
if (Object.keys(listMappings).includes(listKeyOrId)) {
listId = listMappings[listKeyOrId].readlistId;
}
const list = await getListInfo(listId);
const ids = list.bookIds;
const seriesPath = `/data/comics/[List] ${list.name}`;