!flDUDlxzYhNVyLEcSA:bonifacelabs.ca

Jellyfin Client Development

1829 Members
Development discussion of Jellyfin client projects. See the space for more rooms: #jellyfinorg:matrix.org45 Servers

Load older messages


SenderMessageTime
28 Jun 2022
@_discord_739195132297084949:t2bot.ioturbochamp Still can't figure it out, should be serverURL/Users/AuthenticateUserByName and pass in the username/pw. I'm reading this: https://jmshrv.com/posts/jellyfin-api/ 03:02:11
@thornbill:matrix.orgthornbillWhat does your Authorization header look like?03:07:34
@_discord_739195132297084949:t2bot.ioturbochamp I didn't think I'd need one since I'm trying to get a token back, unless I'm wrong on that 03:10:21
@_discord_739195132297084949:t2bot.ioturbochamp const res = await fetch(http://localhost:8096/Users/AuthenticateByName, {
method: "POST",
headers: new Headers({
"Content-Type": "application/json",
}),
body: {
UserName: userName,
Pw: password,
},
});
console.log(res.data)
03:10:32
@mcarlton:nerdyredneck.netmcarltonyou need to build a header to include in the request, get the token back from auth, and then update your headers to also include the token03:11:51
@_discord_739195132297084949:t2bot.ioturbochamp * const res = await axios.post(http://localhost:8096/Users/AuthenticateByName, {
method: "POST",
headers: new Headers({
"Content-Type": "application/json",
}),
body: {
UserName: userName,
Pw: password,
},
});
console.log(res.data)
03:11:54
@_discord_739195132297084949:t2bot.ioturbochamp I guess I don't see that in the api docs 03:21:52
@mcarlton:nerdyredneck.netmcarltonif you can read python, this might help https://gist.github.com/mcarlton00/f7bd7218828ed465ce0f309cebf9a24703:23:13
@_discord_739195132297084949:t2bot.ioturbochamp So I'm thinking this:

headers: {
"Content-Type": "application/json",
"x-emby-authorization": {
MediaBrowser: "",
Client: "",
Device: "script",
DeviceId: "script",
Version: "0.0.0",
},
03:30:33
@thornbill:matrix.orgthornbillAfaik you can’t set it as an object like that03:38:31
@thornbill:matrix.orgthornbillThis is what I do in the sdk: https://github.com/thornbill/jellyfin-sdk-typescript/blob/master/src/utils/authentication.ts#L1303:39:28
@_discord_739195132297084949:t2bot.ioturbochamp Hm, tried a few things. Can't figure it out right now. 03:46:53
@_discord_434135504792059917:t2bot.ioAndRoo joined the room.04:50:30
@_discord_167452465317281793:t2bot.ioKiel changed their display name from Kiel to Kiel#9999.05:49:47
@_discord_167452465317281793:t2bot.ioKiel changed their display name from Kiel#9999 to Kiel.05:50:08
@_discord_514095357702176778:t2bot.iolordfrikk joined the room.10:19:08
@_discord_253861551365292033:t2bot.ioDragon joined the room.10:35:26
@_discord_99827562888314880:t2bot.ioNovaMoon joined the room.12:28:26
@oddstr13:matrix.orgOddstr13 joined the room.20:12:07
@_discord_602479778041430036:t2bot.iochas joined the room.21:02:00
@_discord_265899406421655553:t2bot.iovenray joined the room.22:21:23
@_discord_840626387828211722:t2bot.ioThuG joined the room.22:43:09
29 Jun 2022
@itsjeffrey:matrix.orgitsjeffrey joined the room.05:31:14
@_discord_322254091340480512:t2bot.ioSubZero joined the room.10:05:54
@_discord_139111806047092736:t2bot.ioLueron joined the room.10:41:00
@timeobserver:matrix.orgtimeobserver joined the room.11:47:28
@_discord_940621203440271411:t2bot.ioSkuair joined the room.14:40:58
@_discord_194054429375201281:t2bot.iolowbeatunknown.png
Download unknown.png
14:42:43
@_discord_194054429375201281:t2bot.iolowbeat why cant I load a video on the local player that I just ran ? 14:42:43
@thornbill:matrix.orgthornbill Sounds like a question for the troubleshooting channel 14:44:51

There are no newer messages yet.


Back to Room List