bandcamp-fetch
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -69,3 +69,3 @@ "use strict"; | ||
} | ||
const duration = (0, Parse_js_1.getAdditionalPropertyValue)(basic, 'duration_secs'); | ||
const duration = extra.trackinfo?.[0]?.duration; | ||
if (duration !== undefined) { | ||
@@ -72,0 +72,0 @@ track.duration = duration; |
@@ -9,3 +9,3 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
import { decode } from 'html-entities'; | ||
import { ParseError, getAdditionalPropertyValue, parseLabelFromBackToLabelLink, parsePublisher, reformatImageUrl, splitUrl } from '../utils/Parse.js'; | ||
import { ParseError, parseLabelFromBackToLabelLink, parsePublisher, reformatImageUrl, splitUrl } from '../utils/Parse.js'; | ||
import AlbumInfoParser from '../album/AlbumInfoParser.js'; | ||
@@ -65,3 +65,3 @@ export default class TrackInfoParser { | ||
} | ||
const duration = getAdditionalPropertyValue(basic, 'duration_secs'); | ||
const duration = extra.trackinfo?.[0]?.duration; | ||
if (duration !== undefined) { | ||
@@ -68,0 +68,0 @@ track.duration = duration; |
{ | ||
"name": "bandcamp-fetch", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Scrape Bandcamp content", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -0,1 +1,3 @@ | ||
<a href='https://ko-fi.com/C0C5RGOOP' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi2.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a> | ||
# bandcamp-fetch | ||
@@ -1015,2 +1017,5 @@ | ||
1.2.1 | ||
- Fix `duration` not returned in result of `TrackAPI::getInfo()` ([#7](https://github.com/patrickkfkan/bandcamp-fetch/issues/7)) | ||
1.2.0 | ||
@@ -1017,0 +1022,0 @@ - Add Stream API for testing and refreshing stream URLs |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1107581
1067