parent
6af1a1a23e
commit
70af730142
2 changed files with 78 additions and 1 deletions
apps/list2series
|
@ -225,6 +225,74 @@
|
||||||
"readlistId": "0KFP4H1Y0XTSH",
|
"readlistId": "0KFP4H1Y0XTSH",
|
||||||
"seriesId": "0KFP7H2NWXTJ5",
|
"seriesId": "0KFP7H2NWXTJ5",
|
||||||
"issues": [
|
"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",
|
"series": "List Redirects",
|
||||||
"title": "AvX - Redirect"
|
"title": "AvX - Redirect"
|
||||||
|
|
|
@ -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
|
list: ReadList
|
||||||
seriesPath: string
|
seriesPath: string
|
||||||
listBooks: Book[]
|
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 list = await getListInfo(listId);
|
||||||
const ids = list.bookIds;
|
const ids = list.bookIds;
|
||||||
const seriesPath = `/data/comics/[List] ${list.name}`;
|
const seriesPath = `/data/comics/[List] ${list.name}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue