Skip to content

Commit

Permalink
OneNote Bug Bounty - #177 (PR #209)
Browse files Browse the repository at this point in the history
* Move extension list
* YouTube videos fix
* Improve rate-limiting
* OneNote nested sections support

---------

Co-authored-by: Tony Grosinger <tony@grosinger.net>
  • Loading branch information
p3rid0t and tgrosinger committed Mar 28, 2024
1 parent 13604d6 commit 6bccde0
Show file tree
Hide file tree
Showing 4 changed files with 321 additions and 180 deletions.
4 changes: 1 addition & 3 deletions src/formats/keep-json.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FrontMatterCache, Notice, Setting, TFolder } from 'obsidian';
import { PickedFile } from '../filesystem';
import { FormatImporter } from '../format-importer';
import { ImportContext } from '../main';
import { ATTACHMENT_EXTS, ImportContext } from '../main';
import { serializeFrontMatter } from '../util';
import { readZip, ZipEntryFile } from '../zip';
import { KeepJson } from './keep/models';
Expand All @@ -10,8 +10,6 @@ import { sanitizeTag, sanitizeTags, toSentenceCase } from './keep/util';

const BUNDLE_EXTS = ['zip'];
const NOTE_EXTS = ['json'];
// Google Keep supports attachment formats that might change and exports in the original format uploaded, so limiting to binary formats Obsidian supports
const ATTACHMENT_EXTS = ['png', 'webp', 'jpg', 'jpeg', 'gif', 'bmp', 'svg', 'mpg', 'm4a', 'webm', 'wav', 'ogv', '3gp', 'mov', 'mp4', 'mkv', 'pdf'];
// Ignore the following files:
// - Html duplicates
// - Another html summary
Expand Down
Loading

0 comments on commit 6bccde0

Please sign in to comment.