Comments (9)
Only happens over what the addon (or Jellyfin?) determines is a connection over the internet (WAN, External), and then only over HTTP.
jellyfin-kodi/resources/lib/jellyfin/core/connection_manager.py
Lines 26 to 30 in c12918f
jellyfin-kodi/resources/lib/dialogs/loginmanual.py
Lines 119 to 123 in c12918f
jellyfin-kodi/resources/lib/jellyfin/core/connection_manager.py
Lines 147 to 174 in c12918f
As to how it decides mode == 'Remote'
, I have decided I would like to keep my sanity (for now at least).
from jellyfin-kodi.
The quick and dirty fix is to just change https://github.com/jellyfin/jellyfin-kodi/blob/master/resources/lib/jellyfin/core/connection_manager.py#L161 from
request = {
'type': "POST",
'url': self.get_jellyfin_url(server, "Users/AuthenticateByName"),
'json': {
'username': username,
'password': hashlib.sha1(password or "").hexdigest(),
}
}
if clear:
request['json']['pw'] = password or ""
to
request = {
'type': "POST",
'url': self.get_jellyfin_url(server, "Users/AuthenticateByName"),
'json': {
'username': username,
'Pw': password,
}
}
This way it bypasses the whole WAN detection/mode/shenanigans and always sends a clear password.
I haven't seen any of my boxes fail to connect, so I'm not sure if it's actually broken for people or not. This will get them working again if so. I agree that we should track down all the other unneeded code around this and keep it cleaned up though.
from jellyfin-kodi.
Shouldn't it be Pw
instead of password
?
from jellyfin-kodi.
It should, good catch. Corrected. Too early in the morning for me to be having technical discussions
from jellyfin-kodi.
I'm not sure of how emby/jf handles auth, and if they would reject a plain password login over wan.
As such, I would suggest just removing the clear check and unindenting the set password line
from jellyfin-kodi.
If we go that route, might as well just change the payload instead of adding another parameter later.
'json': {
'username': username,
'password': hashlib.sha1(password or "").hexdigest(),
'Pw': password,
}
That being said, my impression was that all support for pre-hashed passwords had been removed, WAN or otherwise. I could be wrong though
from jellyfin-kodi.
Well, what @mcarlton00 says is correct. All pre-hashed password support has been removed, regardless of connection method. If you send one, you get a friendly 405 MethodNotAllowed.
Thus, my vote here is for whatever gets it working again with a plain password.
from jellyfin-kodi.
So that's a 405 when the pre-hashed password is present? or just when the plaintext one is missing?
Edit: If I'm reading this right, then both fields are required?
https://github.com/jellyfin/jellyfin/blob/master/MediaBrowser.Api/UserService.cs#L98L117
from jellyfin-kodi.
In jellyfin/jellyfin#1244 we have the relevant changes
from jellyfin-kodi.
Related Issues (20)
- Kodi 21 Beta 3 | Broken Movie Library HOT 1
- Content update error on kodi start HOT 3
- Periodically Asked to Re-enter Login Details HOT 5
- importing kodi playlists into jellyfin HOT 1
- Enabling Kodi Sync Queue in jf4k causes adverse video playback performance HOT 2
- Can not start the plugin after the installation, shows error and check the log HOT 4
- Kodi doesn't see JF Libraries. HOT 4
- Various Artists albums show up empty in Kodi HOT 2
- Is quick connect supported ? HOT 2
- Jellyfin plugin extremely slow to start playback HOT 6
- Constently missing TV episodes that are present in Jellyfin; do not show up in kodi with addon HOT 2
- Jellyfin crashed. "Could not apply migration 'MigrateActivityLogDatabase" HOT 1
- Music videos library won't play HOT 8
- Slow sync HOT 2
- Sync Failed HOT 6
- strHdrType DB field does not exist in Kodi 19 HOT 4
- this plugin has an error when playing records in the latest KODI 21 version
- Extras / Special Features do not save metadata to NFO files HOT 1
- Screen takes me to the menu for a couple of seconds when episode ends and loads the next one
- Kodi videos played via Jellyfin start dropping frames / stuttering after several minutes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jellyfin-kodi.