Skip to content

Add Napisy24 provider #437

Merged
morpheus65535 merged 3 commits intomorpheus65535:developmentfrom
MoshiMoshi0:provider/napisy24
May 19, 2019
Merged

Add Napisy24 provider #437
morpheus65535 merged 3 commits intomorpheus65535:developmentfrom
MoshiMoshi0:provider/napisy24

Conversation

@MoshiMoshi0
Copy link
Copy Markdown
Contributor

Pretty much the same as /subliminal/#787, just slightly simplified.

@morpheus65535
Copy link
Copy Markdown
Owner

Is it normal to have username and password hard coded in your PR?

@MoshiMoshi0
Copy link
Copy Markdown
Contributor Author

Yes, kinda, you have to write to the admins that you want an account with api access, and they create it for you.

I had it first where you can configure the username/password but thought it was unnecessary since as far as I know the normal user accounts dont work anyway, so that could cause confusion.

@MoshiMoshi0
Copy link
Copy Markdown
Contributor Author

I guess I could add it back with a tooltip that says that you can only use accounts with api access?

@morpheus65535
Copy link
Copy Markdown
Owner

Yes and you could make it as an always visible text to be sure user see it. I would me more inclined to merge this if it doesn't rely on your username and password... :-)

@MoshiMoshi0
Copy link
Copy Markdown
Contributor Author

Will do. The account is not really mine, it was created just to be used as default for subliminal, but they seem to not merge providers. QNapi also has its own default account.

Anyway, ill add it just to have it as an option.

@MoshiMoshi0
Copy link
Copy Markdown
Contributor Author

Added as a tooltip because I could not make it look nice. Also switched to subliminal_patch imports.

OOT: I think it would be better to fork subliminal and merge the subliminal_patch changes because it will get out of hand. And some unit tests for faster debugging/development would be nice. Spent like an hour just to modify bazarr for fast provider test.

Just a suggestion, dont know if this is planned.

@morpheus65535
Copy link
Copy Markdown
Owner

Good works! Thanks by the way :-)

About merging subliminal and subliminal_patch, I've spoken with @pannal and it's out of question for now. We are both missing time to do this.

About unit testing, it's something I've been thinking about for a year but never toke the time to write some.

@morpheus65535 morpheus65535 merged commit 1bfcfa1 into morpheus65535:development May 19, 2019
@MoshiMoshi0 MoshiMoshi0 deleted the provider/napisy24 branch May 21, 2019 15:05
@MoshiMoshi0
Copy link
Copy Markdown
Contributor Author

MoshiMoshi0 commented May 24, 2019

Sorry for writing here but I have a few questions because im still finding stuff that I think should be added to this.

  • What is the purpose of hash_verifiable in Subtitle class? Should I use it I set required_hash?
  • Should I save the credentials to the database here? Seems like most providers dont do that.
  • How to implement the subtitle link in the manual search dialog?

Thanks

@morpheus65535
Copy link
Copy Markdown
Owner

@pannal is probably better suited to answer your first question.

About credentials, no we save them to config.ini.

About site_link, you can look at #381 how it's been done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants