<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>301829</bug_id>
          
          <creation_ts>2012-06-13 17:58:03 +0000</creation_ts>
          <short_desc>APG length can not be longer than 99 songs</short_desc>
          <delta_ts>2012-11-08 23:18:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>amarok</product>
          <component>Playlists/Automated Playlist Generator</component>
          <version>2.5.90 (2.6 beta)</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jorge A. Jaramillo G.">jajaramillog</reporter>
          <assigned_to name="Amarok Bugs">amarok-bugs-null</assigned_to>
          <cc>jajaramillog</cc>
    
    <cc>stharward</cc>
          
          <cf_commitlink>http://commits.kde.org/amarok/e725f3364f56d2d3db7258217a132c03cccc6038</cf_commitlink>
          <cf_versionfixedin>2.7</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1265455</commentid>
    <comment_count>0</comment_count>
    <who name="Jorge A. Jaramillo G.">jajaramillog</who>
    <bug_when>2012-06-13 17:58:03 +0000</bug_when>
    <thetext>When using APG with a length constraint, playlist lengths over 99 songs always produces an error &quot;The playlist generator created a playlist that doesn&apos;t match all constraints&quot;. Any other length constraint under 99 songs works perfectly. 

Reproducible: Always

Steps to Reproduce:
1. Open the APG tool. 
2. Create a new p-redefinition.
3. Add a playlist length constraint.
4. Set playlist length preferences &quot;more than&quot; any number greater than 99 or &quot;equal to&quot; any number greater than 100. Match bar is set to &quot;exactly&quot;.
5. Execute APG predefinition.
Actual Results:  
Amarok produces the error &quot;The playlist generator created a playlist that doesn&apos;t match all constraints&quot; and populates the playlist with a number of song so much lower than expected.

Expected Results:  
Amarok should create a playlist with more than 100 songs.

This error was also present in the version 2.5 of Amarok but it did not in the 2.4 version. I&apos;m using Kubuntu 12.04 with x86_64 architecture.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1281520</commentid>
    <comment_count>1</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2012-08-04 12:12:43 +0000</bug_when>
    <thetext>Soren: please keep the default assignee, else this bug disappears from our updates and filters. Subscribing should be enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1313684</commentid>
    <comment_count>2</comment_count>
    <who name="Soren Harward">stharward</who>
    <bug_when>2012-11-08 22:25:50 +0000</bug_when>
    <thetext>Git commit e725f3364f56d2d3db7258217a132c03cccc6038 by Soren Harward.
Committed on 08/11/2012 at 22:35.
Pushed by stharward into branch &apos;master&apos;.

Whole bunch of APG improvements and bugfixes

See ChangeLog for details
Related: bug 283618, bug 293616, bug 294743

M  +7    -0    ChangeLog
M  +2    -0    src/CMakeLists.txt
M  +2    -1    src/browsers/playlistbrowser/APGCategory.cpp
M  +7    -1    src/playlistgenerator/ConstraintFactory.cpp
M  +3    -13   src/playlistgenerator/ConstraintGroup.cpp
M  +2    -6    src/playlistgenerator/ConstraintGroup.h
M  +2    -2    src/playlistgenerator/ConstraintNode.cpp
M  +2    -6    src/playlistgenerator/ConstraintNode.h
M  +3    -17   src/playlistgenerator/ConstraintSolver.cpp
M  +1    -3    src/playlistgenerator/ConstraintSolver.h
M  +7    -1    src/playlistgenerator/PresetModel.cpp
M  +2    -1    src/playlistgenerator/PresetModel.h
M  +4    -3    src/playlistgenerator/TODO
M  +2    -26   src/playlistgenerator/constraints/Checkpoint.cpp
M  +2    -4    src/playlistgenerator/constraints/Checkpoint.h
M  +1    -1    src/playlistgenerator/constraints/Matching.h
M  +5    -13   src/playlistgenerator/constraints/PlaylistDuration.cpp
M  +2    -2    src/playlistgenerator/constraints/PlaylistDuration.h
A  +281  -0    src/playlistgenerator/constraints/PlaylistFileSize.cpp     [License: GPL (v2+)]
C  +22   -19   src/playlistgenerator/constraints/PlaylistFileSize.h [from: src/playlistgenerator/constraints/PlaylistLength.h - 071% similarity]
A  +193  -0    src/playlistgenerator/constraints/PlaylistFileSizeEditWidget.ui
M  +11   -11   src/playlistgenerator/constraints/PlaylistLength.cpp
M  +2    -2    src/playlistgenerator/constraints/PlaylistLength.h
M  +1    -55   src/playlistgenerator/constraints/PreventDuplicates.cpp
M  +1    -5    src/playlistgenerator/constraints/PreventDuplicates.h
M  +1    -21   src/playlistgenerator/constraints/TagMatch.cpp
M  +1    -5    src/playlistgenerator/constraints/TagMatch.h
M  +1    -12   src/playlistgenerator/constraints/TagMatchComparer.cpp
M  +1    -2    src/playlistgenerator/constraints/TagMatchSupport.cpp
M  +1    -25   src/playlistgenerator/constraints/TrackSpreader.cpp
M  +1    -5    src/playlistgenerator/constraints/TrackSpreader.h

http://commits.kde.org/amarok/e725f3364f56d2d3db7258217a132c03cccc6038</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>