Skip to content

Commit

Permalink
update description to keep old behavior
Browse files Browse the repository at this point in the history
right now I'm keeping the old behavior and adding the new one as a fallback.
not too sure about this yet.
  • Loading branch information
vasconsaurus committed Sep 8, 2023
1 parent 3081dc0 commit 0c88a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/parser/kwai_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def parse_data_for_parser(doc, _original_url, jsonld_array)

title = get_kwai_text_from_tag(doc, '.info .title') || jsonld.dig('name')
name = get_kwai_text_from_tag(doc, '.name') || jsonld.dig('creator','name')
description = jsonld.dig('transcript') || jsonld.dig('description')
description = get_kwai_text_from_tag(doc, '.info .title') || jsonld.dig('transcript') || jsonld.dig('description')
@parsed_data.merge!({
title: title,
description: description,
Expand Down

0 comments on commit 0c88a92

Please sign in to comment.