Jump to content

Emby for AndroidTV - Script


NeoMatrix

Recommended Posts

NeoMatrix

Looking for information

 

There is a file on an AndroidTV box called tv.emby.lastlogin.json

 

Here is an output of a user that no longer exists........

 

User: 123456 Pass:123456 (testing only)

 

{"pw":"123456" "serverInfo":{"AccessToken":"0bf4a3cd40f0415cb029c948acdcd65b" "DateLastAccessed":"2019-09-01T14:52:04" "Id":"901c3a9b0516492083f470e39c976f28" "LastConnectionMode":"Manual" "LocalAddress":"http://172.17.0.3:8096" "ManualAddress":  "http://XXX.XXX.XXX.XXX:8096"  "Name":"60e802abeca6" "RemoteAddress":"http://195.201.196.201:8096" "UserId":"e34b6608c04340c693d756eaa09b725b" "WakeOnLanInfos":[]} "userDto":{"Configuration":{"DisplayCollectionsView":false "DisplayMissingEpisodes":false "DisplayUnairedEpisodes":false "EnableLocalPassword":false "EnableNextEpisodeAutoPlay":true "GroupedFolders":[] "HidePlayedInLatest":true "LatestItemsExcludes":[] "OrderedViews":[] "PlayDefaultAudioTrack":true "RememberAudioSelections":true "RememberSubtitleSelections":true "SubtitleMode":"Default"} "HasConfiguredEasyPassword":false "HasConfiguredPassword":true "HasPassword":true "Id":"e34b6608c04340c693d756eaa09b725b" "LastActivityDate":"2019-09-01T13:52:04" "LastLoginDate":"2019-09-01T13:52:04" "Name":"123456" "Policy":{"AccessSchedules":[] "BlockUnratedItems":[] "BlockedTags":[] "EnableAllChannels":true "EnableAllDevices":true "EnableAllFolders":true "EnableAudioPlaybackTranscoding":false "EnableContentDeletion":false "EnableContentDownloading":false "EnableLiveTvAccess":false "EnableLiveTvManagement":false "EnableMediaPlayback":true "EnablePlaybackRemuxing":false "EnablePublicSharing":false "EnableRemoteControlOfOtherUsers":false "EnableSharedDeviceControl":false "EnableSyncTranscoding":false "EnableUserPreferenceAccess":false "EnableVideoPlaybackTranscoding":false "EnabledChannels":[] "EnabledDevices":[] "EnabledFolders":[] "InvalidLoginAttemptCount":0 "IsAdministrator":false "IsDisabled":false "IsHidden":true} "ServerId":"901c3a9b0516492083f470e39c976f28"}}
 

 

 

I have full control of my server but looking to find where do i get the following variables for a particualr user:

"AccessToken":"0bf4a3cd40f0415cb029c948acdcd65b

"UserId":"e34b6608c04340c693d756eaa09b725b"

"Id":"e34b6608c04340c693d756eaa09b725b"

 

The rest of the variables I'm fine with,

 

Are they in a datbase file somewhere? Is there an API I can call to get these?

 

Thanks for any help.....

Edited by NeoMatrix
Link to comment
Share on other sites

Hi.  That file is for system use only and may or may not change or disappear at any time :).

 

What are you actually attempting to accomplish?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...