fix error

This commit is contained in:
chiu 2022-01-12 02:35:58 +00:00
parent 8ac2054a00
commit b50bc8e490
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ module AsiaSyncPlugin
wc.rss2_id = conference_paper["ukey"]
titles = conference_paper["name"].split("-")
wc.paper_title_translations = localize_data(titles[0])
wc.conference_title_translations = localize_data(titles[1])
wc.conference_title_translations = localize_data(titles[1..-1].join("-"))
wc.authors_translations = localize_data(conference_paper["author"])
wc.location_translations = localize_data(conference_paper["Sym_location"].strip)
wc.publication_date = DateTime.parse(conference_paper["Sym_YearMonth"].gsub('.','/')) rescue nil
@ -412,4 +412,4 @@ namespace :sync_asia_personal_plugins do
res = net_http_get_response(uri + "?#{encrypt_base64}")
return JSON.parse(res.body,{object_class: AsiaSyncPlugin::SafeHash})
end
end
end