mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
temp
This commit is contained in:
@@ -70,9 +70,6 @@ func (t *ImportTask) ImportPerformers(ctx context.Context) {
|
||||
|
||||
logger.Progressf("[performers] %d of %d", index, len(t.Mappings.Performers))
|
||||
|
||||
// generate checksum from performer name rather than image
|
||||
checksum := utils.MD5FromString(performerJSON.Name)
|
||||
|
||||
// Process the base 64 encoded image string
|
||||
_, imageData, err := utils.ProcessBase64Image(performerJSON.Image)
|
||||
if err != nil {
|
||||
@@ -81,6 +78,8 @@ func (t *ImportTask) ImportPerformers(ctx context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
checksum := utils.MD5FromBytes(imageData)
|
||||
|
||||
// Populate a new performer from the input
|
||||
newPerformer := models.Performer{
|
||||
Image: imageData,
|
||||
@@ -168,9 +167,6 @@ func (t *ImportTask) ImportStudios(ctx context.Context) {
|
||||
|
||||
logger.Progressf("[studios] %d of %d", index, len(t.Mappings.Studios))
|
||||
|
||||
// generate checksum from studio name rather than image
|
||||
checksum := utils.MD5FromString(studioJSON.Name)
|
||||
|
||||
// Process the base 64 encoded image string
|
||||
_, imageData, err := utils.ProcessBase64Image(studioJSON.Image)
|
||||
if err != nil {
|
||||
@@ -179,6 +175,8 @@ func (t *ImportTask) ImportStudios(ctx context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
checksum := utils.MD5FromBytes(imageData)
|
||||
|
||||
// Populate a new studio from the input
|
||||
newStudio := models.Studio{
|
||||
Image: imageData,
|
||||
|
||||
Reference in New Issue
Block a user