Skip to content

Commit 61ebbc8

Browse files
committed
bump version to 0.3.0
1 parent 115728f commit 61ebbc8

File tree

6 files changed

+35
-10
lines changed

6 files changed

+35
-10
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@ title -> name
4242
year -> releaseYear
4343
```
4444

45+
#### Bulk Import
46+
The plugin allows you to import your preexisting media collection and upgrade them to Media DB entries.
47+
48+
##### Prerequisites
49+
The preexisting media notes must be inside a folder in your vault.
50+
For the plugin to be able to query them they need one metadata field that is used as the title the piece of media is searched by.
51+
This can be achieved by for example using a `csv` import plugin to import an existing list from outside of obsidian.
52+
53+
##### Importing
54+
To start the import process, right-click on the folder and select the `Import folder as Media DB entries` option.
55+
Then specify the API to search, if the current note content and metadata should be appended to the Media DB entry and the name of the metadata field that contains the title of the piece of media.
56+
57+
Then the plugin will go through every file in the folder and prompt you to select from the search results.
58+
59+
##### Post import
60+
After all files have been imported or the import was canceled, you will find the new entries as well as an error report that contains any errors or skipped/canceled files in the folder specified in the setting of the plugin.
61+
4562
### How to install
4663
**The plugin is now released, so it can be installed directly through obsidian's plugin installer.**
4764

@@ -113,6 +130,14 @@ Now you select the result you want and the plugin will cast it's magic and creat
113130
You are more than welcome to open an issue on [GitHub](https://github.com/mProjectsCode/obsidian-media-db-plugin/issues).
114131

115132
### Changelog
133+
#### 0.3.0
134+
- Added bulk import. Import a folder of media notes as Media DB entries (thanks to [PaperOrb](https://github.com/PaperOrb) on GitHub for their input and for helping me test this feature)
135+
- Added a custom result select modal that allows you to select multiple results at once
136+
- Fixed a bug where the note creation would fail when the metadata included a field with the values `null` or `undefined`
137+
138+
#### 0.2.1
139+
- fixed a small bug with the initial selection of an API in the ID search modal
140+
116141
#### 0.2.0
117142
- Added the option to rename metadata fields through property mappings
118143
- fixed note creation falling, when the folder set in the settings did not exist

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"id": "obsidian-media-db-plugin",
33
"name": "Media DB Plugin",
4-
"version": "0.2.1",
4+
"version": "0.3.0",
55
"minAppVersion": "0.14.0",
6-
"description": "A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault. ",
6+
"description": "A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.",
77
"author": "Moritz Jung",
88
"authorUrl": "https://mprojectscode.github.io/",
99
"isDesktopOnly": false

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "obsidian-media-db-plugin",
3-
"version": "0.1.0",
4-
"description": "Coming soon TM",
3+
"version": "0.3.0",
4+
"description": "A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.",
55
"main": "main.js",
66
"scripts": {
77
"dev": "node esbuild.config.mjs",
88
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
99
"version": "node version-bump.mjs && git add manifest.json versions.json"
1010
},
1111
"keywords": [],
12-
"author": "",
13-
"license": "MIT",
12+
"author": "Moritz Jung",
13+
"license": "GPL-3.0",
1414
"devDependencies": {
1515
"@popperjs/core": "^2.11.5",
1616
"@types/node": "^16.11.6",

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class MediaDbPlugin extends Plugin {
3434
this.registerEvent(this.app.workspace.on('file-menu', (menu, file) => {
3535
if (file instanceof TFolder) {
3636
menu.addItem(item => {
37-
item.setTitle('Create Media DB entries from folder')
37+
item.setTitle('Import folder as Media DB entries')
3838
.setIcon('database')
3939
.onClick(() => this.createEntriesFromFolder(file as TFolder));
4040
});

src/modals/MediaDbFolderImportModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class MediaDbFolderImportModal extends Modal {
2424
onOpen() {
2525
const {contentEl} = this;
2626

27-
contentEl.createEl('h2', {text: 'Create Media DB entries from folder'});
27+
contentEl.createEl('h2', {text: 'Import folder as Media DB entries'});
2828

2929
const apiSelectorWrapper = contentEl.createEl('div', {cls: 'media-db-plugin-list-wrapper'});
3030
const apiSelectorTextWrapper = apiSelectorWrapper.createEl('div', {cls: 'media-db-plugin-list-text-wrapper'});

src/utils/Utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {MediaTypeModel} from '../models/MediaTypeModel';
44
export const pluginName: string = 'obsidian-media-db-plugin';
55
export const contactEmail: string = '[email protected]';
66
export const mediaDbTag: string = 'mediaDB';
7-
export const mediaDbVersion: string = '0.2.1';
8-
export const debug: boolean = true;
7+
export const mediaDbVersion: string = '0.3.0';
8+
export const debug: boolean = false;
99

1010
export function wrapAround(value: number, size: number): number {
1111
return ((value % size) + size) % size;

0 commit comments

Comments
 (0)