support in-app connect signup

This commit is contained in:
Luke Pulverenti 2015-06-13 19:56:59 -04:00
parent 7905080e3e
commit 3205913b2a
3 changed files with 14 additions and 2 deletions

View File

@ -804,5 +804,9 @@
"ButtonManageServer": "Manage Server",
"ButtonPreferences": "Preferences",
"ButtonViewArtist": "View artist",
"ButtonViewAlbum": "View album"
"ButtonViewAlbum": "View album",
"ErrorMessagePasswordNotMatchConfirm": "The password and password confirmation must match.",
"ErrorMessageUsernameInUse": "The username is already in use. Please choose a new name and try again.",
"ErrorMessageEmailInUse": "The email address is already in use. Please enter a new email address and try again, or use the forgot password feature.",
"MessageThankYouForConnectSignUp": "Thank you for signing up for Emby Connect. An email will be sent to your address with instructions on how to confirm your new account. Please confirm the account and then return here to sign in."
}

View File

@ -1455,5 +1455,9 @@
"ButtonUnlockGuide": "Unlock Guide",
"LabelEnableFullScreen": "Enable fullscreen mode",
"LabelEnableChromecastAc3Passthrough": "Enable Chromecast AC3 Passthrough",
"LabelSyncPath": "Synced content path:"
"LabelSyncPath": "Synced content path:",
"LabelEmail": "Email:",
"LabelUsername": "Username:",
"HeaderSignUp": "Sign Up",
"LabelPasswordConfirm": "Password (confirm):"
}

View File

@ -698,6 +698,10 @@ namespace MediaBrowser.Server.Implementations.Sync
syncedItem.OriginalFileName = Path.ChangeExtension(syncedItem.OriginalFileName, Path.GetExtension(mediaSource.Path));
syncedItem.Item.MediaSources.Add(mediaSource);
}
if (string.IsNullOrWhiteSpace(syncedItem.OriginalFileName))
{
syncedItem.OriginalFileName = libraryItem.Name;
}
return syncedItem;
}