anonderpling commited on
Commit
c548fa6
1 Parent(s): 31a8c35

lets me run civitai.info.js directly in my drive...

Browse files
Files changed (1) hide show
  1. civitai.info.js +4 -2
civitai.info.js CHANGED
@@ -79,7 +79,9 @@ var push=function(file){
79
  addons.push(addon);
80
  };
81
 
82
- var files=fromDir('.', '.civitai.info');
 
 
83
  files.forEach(file=>{push(file)});
84
  //push(files[0]);
85
  var errs=[...errors,...errors2].sort();
@@ -88,4 +90,4 @@ fs.writeFileSync('errors.json',JSON.stringify(errs))
88
  //console.error("Error with the following files:",errors);
89
  fs.writeFileSync('delfiles.bat','@echo off\n\n'+errs.map(e=>{return "del \""+ e + "\""}).join('\n'))
90
  fs.writeFileSync('delfiles.sh',errs.map(e=>{return "rm \""+ e + "\""}).join('\n').split('\\').join('/'))
91
- fs.writeFileSync('replacefiles.sh',errors.map(e=>{return "wget \"https://huggingface.co/anonderpling/civitai_mirror/resolve/main/"+(e.split(" ").join("%23")+"\" -O \""+e+"\"")}).join('\n').split('\\').join('\/'))
 
79
  addons.push(addon);
80
  };
81
 
82
+ var files1=fromDir('models', '.civitai.info');
83
+ var files2=fromDir('embeddings', '.civitai.info');
84
+ var files=[...files1,...files2];
85
  files.forEach(file=>{push(file)});
86
  //push(files[0]);
87
  var errs=[...errors,...errors2].sort();
 
90
  //console.error("Error with the following files:",errors);
91
  fs.writeFileSync('delfiles.bat','@echo off\n\n'+errs.map(e=>{return "del \""+ e + "\""}).join('\n'))
92
  fs.writeFileSync('delfiles.sh',errs.map(e=>{return "rm \""+ e + "\""}).join('\n').split('\\').join('/'))
93
+ fs.writeFileSync('replacefiles.sh',errors.map(e=>{return "wget \"https://huggingface.co/anonderpling/civitai_mirror/resolve/main/"+(e.split(" ").join("%23")+"\" -O \""+e+"\"")}).join('\n').split('\\').join('\/'))