mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Add todo about deleting from IA
This commit is contained in:
parent
82a83d356c
commit
e26201593f
5 changed files with 7 additions and 2 deletions
|
|
@ -64,6 +64,7 @@ export default class ArchiveFileModel {
|
|||
if (info == null) {
|
||||
return null;
|
||||
}
|
||||
console.log("info", info)
|
||||
return info.getTextContent();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export type FileInfoDebugData = {
|
|||
};
|
||||
|
||||
export default class FileInfoModel {
|
||||
constructor(readonly ctx: UserContext, readonly row: FileInfoRow) {}
|
||||
constructor(readonly ctx: UserContext, readonly row: FileInfoRow) { }
|
||||
|
||||
static async fromFileMd5(
|
||||
ctx: UserContext,
|
||||
|
|
@ -27,6 +27,7 @@ export default class FileInfoModel {
|
|||
}
|
||||
|
||||
getTextContent(): string | null {
|
||||
console.log("row", this.row)
|
||||
return this.row.text_content;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export const IS_NOT_README =
|
|||
/(genex\.txt)|(genexinfo\.txt)|(gen_gslyrics\.txt)|(region\.txt)|(pledit\.txt)|(viscolor\.txt)|(winampmb\.txt)|("gen_ex help\.txt)|(mbinner\.txt)$/i;
|
||||
|
||||
export default class SkinModel {
|
||||
constructor(readonly ctx: UserContext, readonly row: SkinRow) {}
|
||||
constructor(readonly ctx: UserContext, readonly row: SkinRow) { }
|
||||
|
||||
static async fromMd5(
|
||||
ctx: UserContext,
|
||||
|
|
@ -195,6 +195,7 @@ export default class SkinModel {
|
|||
if (readme == null) {
|
||||
return null;
|
||||
}
|
||||
console.log("readme", readme)
|
||||
return readme.getTextContent();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -232,6 +232,7 @@ export async function deleteSkin(md5: string): Promise<void> {
|
|||
console.log(`... purging screenshot and skin from CloudFlare`);
|
||||
await CloudFlare.purgeFiles([getScreenshotUrl(md5), getSkinUrl(md5)]);
|
||||
console.log(`Done deleting skin ${md5} from external sources.`);
|
||||
// TODO: Delete from Internet Archive
|
||||
}
|
||||
|
||||
export async function deleteLocalSkin(md5: string): Promise<void> {
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ export async function postSkin({
|
|||
return;
|
||||
}
|
||||
const readmeText = await skin.getReadme();
|
||||
console.log("readmeText", readmeText)
|
||||
const tweet = await skin.getTweet();
|
||||
const tweetStatus = await skin.getTweetStatus();
|
||||
const iaItem = await skin.getIaItem();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue