MCPcopy
hub / github.com/PleasePrompto/notebooklm-skill / _save_library

Method _save_library

scripts/notebook_manager.py:50–61  ·  view source on GitHub ↗

Save library to disk

(self)

Source from the content-addressed store, hash-verified

48 self._save_library()
49
50 def _save_library(self):
51 """Save library to disk"""
52 try:
53 data = {
54 'notebooks': self.notebooks,
55 'active_notebook_id': self.active_notebook_id,
56 'updated_at': datetime.now().isoformat()
57 }
58 with open(self.library_file, 'w') as f:
59 json.dump(data, f, indent=2)
60 except Exception as e:
61 print(f"❌ Error saving library: {e}")
62
63 def add_notebook(
64 self,

Callers 6

_load_libraryMethod · 0.95
add_notebookMethod · 0.95
remove_notebookMethod · 0.95
update_notebookMethod · 0.95
select_notebookMethod · 0.95
increment_use_countMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected