0.2.57 - Traliers bug fixes
This commit is contained in:
@@ -501,8 +501,8 @@ func (s *Service) recommendationUsers(ctx context.Context) ([]store.Session, err
|
||||
EmbyUserID: user.ID,
|
||||
EmbyToken: s.serviceCred.Token,
|
||||
Username: user.Name,
|
||||
DeviceID: "memby-for-you-builder",
|
||||
DeviceName: "Memby For You builder",
|
||||
DeviceID: builderDeviceID,
|
||||
DeviceName: builderDeviceName,
|
||||
}
|
||||
}
|
||||
out := make([]store.Session, 0, len(byID))
|
||||
@@ -964,9 +964,18 @@ func parsedTime(value string) *time.Time {
|
||||
return &parsed
|
||||
}
|
||||
|
||||
// builderDeviceID and builderDeviceName stand in for a television when the gateway
|
||||
// rebuilds a viewer's rows on its own. It is the server asking, so Emby records it under
|
||||
// the gateway's client name rather than as a set in the house — see Credentials.Gateway.
|
||||
const (
|
||||
builderDeviceID = "memby-for-you-builder"
|
||||
builderDeviceName = "MbyGateway For You"
|
||||
)
|
||||
|
||||
func credentials(sess store.Session) emby.Credentials {
|
||||
return emby.Credentials{
|
||||
UserID: sess.EmbyUserID, Token: sess.EmbyToken,
|
||||
DeviceID: sess.DeviceID, DeviceName: sess.DeviceName,
|
||||
Gateway: sess.DeviceID == builderDeviceID,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user